50 |
int height = 600; |
int height = 600; |
51 |
int tcp_port_rdp = TCP_PORT_RDP; |
int tcp_port_rdp = TCP_PORT_RDP; |
52 |
int server_bpp = 8; |
int server_bpp = 8; |
53 |
|
int win_button_size = 0; /* If zero, disable single app mode */ |
54 |
BOOL bitmap_compression = True; |
BOOL bitmap_compression = True; |
55 |
BOOL sendmotion = True; |
BOOL sendmotion = True; |
56 |
BOOL orders = True; |
BOOL orders = True; |
73 |
fprintf(stderr, " -u: user name\n"); |
fprintf(stderr, " -u: user name\n"); |
74 |
fprintf(stderr, " -d: domain\n"); |
fprintf(stderr, " -d: domain\n"); |
75 |
fprintf(stderr, " -s: shell\n"); |
fprintf(stderr, " -s: shell\n"); |
76 |
|
fprintf(stderr, " -S: caption button size (single application mode)\n"); |
77 |
fprintf(stderr, " -c: working directory\n"); |
fprintf(stderr, " -c: working directory\n"); |
78 |
fprintf(stderr, " -p: password (- to prompt)\n"); |
fprintf(stderr, " -p: password (- to prompt)\n"); |
79 |
fprintf(stderr, " -n: client hostname\n"); |
fprintf(stderr, " -n: client hostname\n"); |
148 |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
domain[0] = password[0] = shell[0] = directory[0] = 0; |
149 |
strcpy(keymapname, "en-us"); |
strcpy(keymapname, "en-us"); |
150 |
|
|
151 |
while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:a:fbemCKT:Dh?")) != -1) |
while ((c = getopt(argc, argv, "u:d:s:S:c:p:n:k:g:a:fbemCKT:Dh?")) != -1) |
152 |
{ |
{ |
153 |
switch (c) |
switch (c) |
154 |
{ |
{ |
165 |
STRNCPY(shell, optarg, sizeof(shell)); |
STRNCPY(shell, optarg, sizeof(shell)); |
166 |
break; |
break; |
167 |
|
|
168 |
|
case 'S': |
169 |
|
if (!strcmp(optarg, "standard")) |
170 |
|
{ |
171 |
|
win_button_size = 18; |
172 |
|
break; |
173 |
|
} |
174 |
|
|
175 |
|
win_button_size = strtol(optarg, &p, 10); |
176 |
|
|
177 |
|
if (*p) |
178 |
|
{ |
179 |
|
error("invalid button size\n"); |
180 |
|
return 1; |
181 |
|
} |
182 |
|
|
183 |
|
break; |
184 |
|
|
185 |
case 'c': |
case 'c': |
186 |
STRNCPY(directory, optarg, sizeof(directory)); |
STRNCPY(directory, optarg, sizeof(directory)); |
187 |
break; |
break; |