66 |
BOOL g_hide_decorations = False; |
BOOL g_hide_decorations = False; |
67 |
BOOL g_use_rdp5 = True; |
BOOL g_use_rdp5 = True; |
68 |
BOOL g_console_session = False; |
BOOL g_console_session = False; |
69 |
|
BOOL g_numlock_sync = False; |
70 |
extern BOOL g_owncolmap; |
extern BOOL g_owncolmap; |
71 |
|
|
72 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
111 |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
fprintf(stderr, " -K: keep window manager key bindings\n"); |
112 |
fprintf(stderr, " -S: caption button size (single application mode)\n"); |
fprintf(stderr, " -S: caption button size (single application mode)\n"); |
113 |
fprintf(stderr, " -T: window title\n"); |
fprintf(stderr, " -T: window title\n"); |
114 |
|
fprintf(stderr, " -N: enable numlock syncronization\n"); |
115 |
fprintf(stderr, " -a: connection colour depth\n"); |
fprintf(stderr, " -a: connection colour depth\n"); |
116 |
fprintf(stderr, " -r: enable specified device redirection (currently: sound)\n"); |
fprintf(stderr, " -r: enable specified device redirection (currently: sound)\n"); |
117 |
fprintf(stderr, " -0: attach to console\n"); |
fprintf(stderr, " -0: attach to console\n"); |
231 |
#define VNCOPT |
#define VNCOPT |
232 |
#endif |
#endif |
233 |
|
|
234 |
while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:a:r:045h?")) != -1) |
while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:Na:r:045h?")) != -1) |
235 |
{ |
{ |
236 |
switch (c) |
switch (c) |
237 |
{ |
{ |
370 |
STRNCPY(g_title, optarg, sizeof(g_title)); |
STRNCPY(g_title, optarg, sizeof(g_title)); |
371 |
break; |
break; |
372 |
|
|
373 |
|
case 'N': |
374 |
|
g_numlock_sync = True; |
375 |
|
break; |
376 |
|
|
377 |
case 'a': |
case 'a': |
378 |
g_server_bpp = strtol(optarg, NULL, 10); |
g_server_bpp = strtol(optarg, NULL, 10); |
379 |
if (g_server_bpp != 8 && g_server_bpp != 16 && g_server_bpp != 15 |
if (g_server_bpp != 8 && g_server_bpp != 16 && g_server_bpp != 15 |