69 |
2 xpos neg, |
2 xpos neg, |
70 |
4 ypos neg */ |
4 ypos neg */ |
71 |
extern int g_tcp_port_rdp; |
extern int g_tcp_port_rdp; |
72 |
int g_server_depth = 8; |
int g_server_depth = -1; |
73 |
int g_win_button_size = 0; /* If zero, disable single app mode */ |
int g_win_button_size = 0; /* If zero, disable single app mode */ |
74 |
BOOL g_bitmap_compression = True; |
BOOL g_bitmap_compression = True; |
75 |
BOOL g_sendmotion = True; |
BOOL g_sendmotion = True; |
84 |
BOOL g_grab_keyboard = True; |
BOOL g_grab_keyboard = True; |
85 |
BOOL g_hide_decorations = False; |
BOOL g_hide_decorations = False; |
86 |
BOOL g_use_rdp5 = True; |
BOOL g_use_rdp5 = True; |
87 |
|
BOOL g_rdpclip = True; |
88 |
BOOL g_console_session = False; |
BOOL g_console_session = False; |
89 |
BOOL g_numlock_sync = False; |
BOOL g_numlock_sync = False; |
90 |
BOOL lspci_enabled = False; |
BOOL lspci_enabled = False; |
181 |
" or mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n"); |
" or mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n"); |
182 |
fprintf(stderr, " '-r sound:[local|off|remote]': enable sound redirection\n"); |
fprintf(stderr, " '-r sound:[local|off|remote]': enable sound redirection\n"); |
183 |
fprintf(stderr, " remote would leave sound on server\n"); |
fprintf(stderr, " remote would leave sound on server\n"); |
184 |
|
fprintf(stderr, |
185 |
|
" '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard\n"); |
186 |
|
fprintf(stderr, " redirection.\n"); |
187 |
|
fprintf(stderr, |
188 |
|
" 'PRIMARYCLIPBOARD' looks at both PRIMARY and CLIPBOARD\n"); |
189 |
|
fprintf(stderr, " when sending data to server.\n"); |
190 |
|
fprintf(stderr, " 'CLIPBOARD' looks at only CLIPBOARD.\n"); |
191 |
fprintf(stderr, " -0: attach to console\n"); |
fprintf(stderr, " -0: attach to console\n"); |
192 |
fprintf(stderr, " -4: use RDP version 4\n"); |
fprintf(stderr, " -4: use RDP version 4\n"); |
193 |
fprintf(stderr, " -5: use RDP version 5 (default)\n"); |
fprintf(stderr, " -5: use RDP version 5 (default)\n"); |
655 |
|
|
656 |
if (*optarg == ':') |
if (*optarg == ':') |
657 |
{ |
{ |
658 |
*optarg++; |
optarg++; |
659 |
while ((p = next_arg(optarg, ','))) |
while ((p = next_arg(optarg, ','))) |
660 |
{ |
{ |
661 |
if (str_startswith(optarg, "remote")) |
if (str_startswith(optarg, "remote")) |
713 |
g_rdpdr_clientname = xmalloc(strlen(optarg + 11) + 1); |
g_rdpdr_clientname = xmalloc(strlen(optarg + 11) + 1); |
714 |
strcpy(g_rdpdr_clientname, optarg + 11); |
strcpy(g_rdpdr_clientname, optarg + 11); |
715 |
} |
} |
716 |
|
else if (str_startswith(optarg, "clipboard")) |
717 |
|
{ |
718 |
|
optarg += 9; |
719 |
|
|
720 |
|
if (*optarg == ':') |
721 |
|
{ |
722 |
|
optarg++; |
723 |
|
|
724 |
|
if (str_startswith(optarg, "off")) |
725 |
|
g_rdpclip = False; |
726 |
|
else |
727 |
|
cliprdr_set_mode(optarg); |
728 |
|
} |
729 |
|
else |
730 |
|
g_rdpclip = True; |
731 |
|
} |
732 |
else |
else |
733 |
{ |
{ |
734 |
warning("Unknown -r argument\n\n\tPossible arguments are: comport, disk, lptport, printer, sound\n"); |
warning("Unknown -r argument\n\n\tPossible arguments are: comport, disk, lptport, printer, sound, clipboard\n"); |
735 |
} |
} |
736 |
break; |
break; |
737 |
|
|
1211 |
while (*(mvp + 1) != (char) 0x00) |
while (*(mvp + 1) != (char) 0x00) |
1212 |
{ |
{ |
1213 |
*mvp = *(mvp + 1); |
*mvp = *(mvp + 1); |
1214 |
*mvp++; |
mvp++; |
1215 |
} |
} |
1216 |
*mvp = (char) 0x00; |
*mvp = (char) 0x00; |
1217 |
p = nextval; |
p = nextval; |