/[rdesktop]/sourceforge.net/trunk/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 211 by matthewc, Fri Oct 4 14:28:14 2002 UTC revision 214 by matthewc, Sun Oct 6 13:57:39 2002 UTC
# Line 40  int tcp_port_rdp = TCP_PORT_RDP; Line 40  int tcp_port_rdp = TCP_PORT_RDP;
40  BOOL bitmap_compression = True;  BOOL bitmap_compression = True;
41  BOOL sendmotion = True;  BOOL sendmotion = True;
42  BOOL orders = True;  BOOL orders = True;
 BOOL licence = True;  
43  BOOL encryption = True;  BOOL encryption = True;
44  BOOL desktop_save = True;  BOOL desktop_save = True;
45  BOOL fullscreen = False;  BOOL fullscreen = False;
# Line 60  usage(char *program) Line 59  usage(char *program)
59          fprintf(stderr, "   -s: shell\n");          fprintf(stderr, "   -s: shell\n");
60          fprintf(stderr, "   -c: working directory\n");          fprintf(stderr, "   -c: working directory\n");
61          fprintf(stderr, "   -p: password (- to prompt)\n");          fprintf(stderr, "   -p: password (- to prompt)\n");
         fprintf(stderr, "   -P: askpass-program (autologon)\n");  
62          fprintf(stderr, "   -n: client hostname\n");          fprintf(stderr, "   -n: client hostname\n");
63          fprintf(stderr, "   -k: keyboard layout on terminal server (us,sv,gr etc.)\n");          fprintf(stderr, "   -k: keyboard layout on terminal server (us,sv,gr etc.)\n");
64          fprintf(stderr, "   -g: desktop geometry (WxH)\n");          fprintf(stderr, "   -g: desktop geometry (WxH)\n");
# Line 68  usage(char *program) Line 66  usage(char *program)
66          fprintf(stderr, "   -b: force bitmap updates\n");          fprintf(stderr, "   -b: force bitmap updates\n");
67          fprintf(stderr, "   -e: disable encryption (French TS)\n");          fprintf(stderr, "   -e: disable encryption (French TS)\n");
68          fprintf(stderr, "   -m: do not send motion events\n");          fprintf(stderr, "   -m: do not send motion events\n");
         fprintf(stderr, "   -l: do not request licence\n");  
69          fprintf(stderr, "   -t: rdp tcp port\n");          fprintf(stderr, "   -t: rdp tcp port\n");
70          fprintf(stderr, "   -K: keep window manager key bindings\n");          fprintf(stderr, "   -K: keep window manager key bindings\n");
71          fprintf(stderr, "   -w: window title\n");          fprintf(stderr, "   -w: window title\n");
# Line 117  main(int argc, char *argv[]) Line 114  main(int argc, char *argv[])
114          char fullhostname[64];          char fullhostname[64];
115          char domain[16];          char domain[16];
116          char password[16];          char password[16];
         char *askpass_result;  
117          char shell[32];          char shell[32];
118          char directory[32];          char directory[32];
119          BOOL prompt_password;          BOOL prompt_password;
# Line 131  main(int argc, char *argv[]) Line 127  main(int argc, char *argv[])
127          domain[0] = password[0] = shell[0] = directory[0] = 0;          domain[0] = password[0] = shell[0] = directory[0] = 0;
128          strcpy(keymapname, "us");          strcpy(keymapname, "us");
129    
130          while ((c = getopt(argc, argv, "u:d:s:c:p:P:n:k:g:t:fbemlKw:h?")) != -1)          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:t:fbemKw:h?")) != -1)
131          {          {
132                  switch (c)                  switch (c)
133                  {                  {
# Line 167  main(int argc, char *argv[]) Line 163  main(int argc, char *argv[])
163                                          *(p++) = 'X';                                          *(p++) = 'X';
164                                  break;                                  break;
165    
                         case 'P':  
                                 askpass_result = askpass(optarg, "Enter password");  
                                 if (askpass_result == NULL)  
                                         exit(1);  
   
                                 STRNCPY(password, askpass_result, sizeof(password));  
                                 free(askpass_result);  
                                 flags |= RDP_LOGON_AUTO;  
                                 break;  
   
166                          case 'n':                          case 'n':
167                                  STRNCPY(hostname, optarg, sizeof(hostname));                                  STRNCPY(hostname, optarg, sizeof(hostname));
168                                  break;                                  break;
# Line 213  main(int argc, char *argv[]) Line 199  main(int argc, char *argv[])
199                                  sendmotion = False;                                  sendmotion = False;
200                                  break;                                  break;
201    
                         case 'l':  
                                 licence = False;  
                                 break;  
   
202                          case 't':                          case 't':
203                                  tcp_port_rdp = strtol(optarg, NULL, 10);                                  tcp_port_rdp = strtol(optarg, NULL, 10);
204                                  break;                                  break;

Legend:
Removed from v.211  
changed lines
  Added in v.214

  ViewVC Help
Powered by ViewVC 1.1.26