/[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 37 by matty, Sat Sep 15 12:34:34 2001 UTC revision 38 by matthewc, Thu Apr 4 12:04:33 2002 UTC
# Line 30  Line 30 
30    
31  char username[16];  char username[16];
32  char hostname[16];  char hostname[16];
33    char keymapname[16];
34    int keylayout;
35  int width;  int width;
36  int height;  int height;
 int keylayout = 0x409;  
37  BOOL bitmap_compression = True;  BOOL bitmap_compression = True;
38  BOOL sendmotion = True;  BOOL sendmotion = True;
39  BOOL orders = True;  BOOL orders = True;
# Line 52  usage(char *program) Line 53  usage(char *program)
53          printf("   -c: working directory\n");          printf("   -c: working directory\n");
54          printf("   -p: password (autologon)\n");          printf("   -p: password (autologon)\n");
55          printf("   -n: client hostname\n");          printf("   -n: client hostname\n");
56          printf("   -k: keyboard layout (hex)\n");          printf("   -k: keyboard layout\n");
57          printf("   -g: desktop geometry (WxH)\n");          printf("   -g: desktop geometry (WxH)\n");
58          printf("   -f: full-screen mode\n");          printf("   -f: full-screen mode\n");
59          printf("   -b: force bitmap updates\n");          printf("   -b: force bitmap updates\n");
# Line 82  main(int argc, char *argv[]) Line 83  main(int argc, char *argv[])
83    
84          flags = RDP_LOGON_NORMAL;          flags = RDP_LOGON_NORMAL;
85          domain[0] = password[0] = shell[0] = directory[0] = 0;          domain[0] = password[0] = shell[0] = directory[0] = 0;
86            strcpy(keymapname, "us");
87    
88          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemlh?")) != -1)          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemlh?")) != -1)
89          {          {
# Line 113  main(int argc, char *argv[]) Line 115  main(int argc, char *argv[])
115                                  break;                                  break;
116    
117                          case 'k':                          case 'k':
118                                  keylayout = strtol(optarg, NULL, 16);                                  STRNCPY(keymapname, optarg, sizeof(keymapname));
                                 if (keylayout == 0)  
                                 {  
                                         error("invalid keyboard layout\n");  
                                         return 1;  
                                 }  
119                                  break;                                  break;
120    
121                          case 'g':                          case 'g':
# Line 226  main(int argc, char *argv[]) Line 223  main(int argc, char *argv[])
223                  rdp_main_loop();                  rdp_main_loop();
224                  printf("Disconnecting...\n");                  printf("Disconnecting...\n");
225                  ui_destroy_window();                  ui_destroy_window();
226                    rdp_disconnect();
227          }          }
228    
         rdp_disconnect();  
229          return 0;          return 0;
230  }  }
231    

Legend:
Removed from v.37  
changed lines
  Added in v.38

  ViewVC Help
Powered by ViewVC 1.1.26