1 |
/* -*- c-basic-offset: 8 -*- |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Entrypoint and utility functions |
Entrypoint and utility functions |
4 |
Copyright (C) Matthew Chapman 1999-2003 |
Copyright (C) Matthew Chapman 1999-2005 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
94 |
usage(char *program) |
usage(char *program) |
95 |
{ |
{ |
96 |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
97 |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2003 Matt Chapman.\n"); |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2005 Matt Chapman.\n"); |
98 |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
99 |
|
|
100 |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
457 |
|
|
458 |
if (*p == '+' || *p == '-') |
if (*p == '+' || *p == '-') |
459 |
g_xpos = strtol(p, &p, 10); |
g_xpos = strtol(p, &p, 10); |
460 |
|
|
461 |
if (*p == '+' || *p == '-') |
if (*p == '+' || *p == '-') |
462 |
g_ypos = strtol(p, NULL, 10); |
g_ypos = strtol(p, NULL, 10); |
463 |
|
|
690 |
STRNCPY(g_hostname, fullhostname, sizeof(g_hostname)); |
STRNCPY(g_hostname, fullhostname, sizeof(g_hostname)); |
691 |
} |
} |
692 |
|
|
693 |
|
if ((flags & RDP_COMPRESSION) && (g_server_bpp > 8)) |
694 |
|
{ |
695 |
|
warning("rdp compression not supported for bpp > 8, compression disabled\n"); |
696 |
|
flags ^= RDP_COMPRESSION; |
697 |
|
} |
698 |
|
|
699 |
if (prompt_password && read_password(password, sizeof(password))) |
if (prompt_password && read_password(password, sizeof(password))) |
700 |
flags |= RDP_LOGON_AUTO; |
flags |= RDP_LOGON_AUTO; |
701 |
|
|