45 |
char hostname[16]; |
char hostname[16]; |
46 |
char keymapname[16]; |
char keymapname[16]; |
47 |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
48 |
int width = 800; |
int width = 800; /* If width or height are reset to zero, the geometry will |
49 |
|
be fetched from _NET_WORKAREA */ |
50 |
int height = 600; |
int height = 600; |
51 |
int tcp_port_rdp = TCP_PORT_RDP; |
int tcp_port_rdp = TCP_PORT_RDP; |
52 |
BOOL bitmap_compression = True; |
BOOL bitmap_compression = True; |
57 |
BOOL fullscreen = False; |
BOOL fullscreen = False; |
58 |
BOOL grab_keyboard = True; |
BOOL grab_keyboard = True; |
59 |
BOOL hide_decorations = False; |
BOOL hide_decorations = False; |
60 |
|
extern BOOL owncolmap; |
61 |
|
|
62 |
/* Display usage information */ |
/* Display usage information */ |
63 |
static void |
static void |
80 |
fprintf(stderr, " -b: force bitmap updates\n"); |
fprintf(stderr, " -b: force bitmap updates\n"); |
81 |
fprintf(stderr, " -e: disable encryption (French TS)\n"); |
fprintf(stderr, " -e: disable encryption (French TS)\n"); |
82 |
fprintf(stderr, " -m: do not send motion events\n"); |
fprintf(stderr, " -m: do not send motion events\n"); |
83 |
|
fprintf(stderr, " -C: use private colour map\n"); |
84 |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
85 |
fprintf(stderr, " -T: window title\n"); |
fprintf(stderr, " -T: window title\n"); |
86 |
fprintf(stderr, " -D: hide window manager decorations\n"); |
fprintf(stderr, " -D: hide window manager decorations\n"); |
143 |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
144 |
strcpy(keymapname, "en-us"); |
strcpy(keymapname, "en-us"); |
145 |
|
|
146 |
while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemKT:Dh?")) != -1) |
while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemCKT:Dh?")) != -1) |
147 |
{ |
{ |
148 |
switch (c) |
switch (c) |
149 |
{ |
{ |
188 |
break; |
break; |
189 |
|
|
190 |
case 'g': |
case 'g': |
191 |
|
if (!strcmp(optarg, "workarea")) |
192 |
|
{ |
193 |
|
width = height = 0; |
194 |
|
break; |
195 |
|
} |
196 |
|
|
197 |
width = strtol(optarg, &p, 10); |
width = strtol(optarg, &p, 10); |
198 |
if (*p == 'x') |
if (*p == 'x') |
199 |
height = strtol(p + 1, NULL, 10); |
height = strtol(p + 1, NULL, 10); |
221 |
sendmotion = False; |
sendmotion = False; |
222 |
break; |
break; |
223 |
|
|
224 |
|
case 'C': |
225 |
|
owncolmap = True; |
226 |
|
break; |
227 |
|
|
228 |
case 'K': |
case 'K': |
229 |
grab_keyboard = False; |
grab_keyboard = False; |
230 |
break; |
break; |