/[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 259 by astrand, Mon Nov 18 15:30:12 2002 UTC revision 263 by astrand, Mon Nov 18 18:12:49 2002 UTC
# Line 45  char username[16]; Line 45  char username[16];
45  char hostname[16];  char hostname[16];
46  char keymapname[16];  char keymapname[16];
47  int keylayout = 0x409;          /* Defaults to US keyboard layout */  int keylayout = 0x409;          /* Defaults to US keyboard layout */
48  int width = 800;  int width = 800;                /* If width or height are reset to zero, the geometry will
49                                       be fetched from _NET_WORKAREA */
50  int height = 600;  int height = 600;
51  int tcp_port_rdp = TCP_PORT_RDP;  int tcp_port_rdp = TCP_PORT_RDP;
52  BOOL bitmap_compression = True;  BOOL bitmap_compression = True;
# Line 55  BOOL encryption = True; Line 56  BOOL encryption = True;
56  BOOL desktop_save = True;  BOOL desktop_save = True;
57  BOOL fullscreen = False;  BOOL fullscreen = False;
58  BOOL grab_keyboard = True;  BOOL grab_keyboard = True;
59    BOOL hide_decorations = False;
60    
61  /* Display usage information */  /* Display usage information */
62  static void  static void
# Line 79  usage(char *program) Line 81  usage(char *program)
81          fprintf(stderr, "   -m: do not send motion events\n");          fprintf(stderr, "   -m: do not send motion events\n");
82          fprintf(stderr, "   -K: keep window manager key bindings\n");          fprintf(stderr, "   -K: keep window manager key bindings\n");
83          fprintf(stderr, "   -T: window title\n");          fprintf(stderr, "   -T: window title\n");
84            fprintf(stderr, "   -D: hide window manager decorations\n");
85  }  }
86    
87  static BOOL  static BOOL
# Line 138  main(int argc, char *argv[]) Line 141  main(int argc, char *argv[])
141          domain[0] = password[0] = shell[0] = directory[0] = 0;          domain[0] = password[0] = shell[0] = directory[0] = 0;
142          strcpy(keymapname, "en-us");          strcpy(keymapname, "en-us");
143    
144          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemKT:h?")) != -1)          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemKT:Dh?")) != -1)
145          {          {
146                  switch (c)                  switch (c)
147                  {                  {
# Line 183  main(int argc, char *argv[]) Line 186  main(int argc, char *argv[])
186                                  break;                                  break;
187    
188                          case 'g':                          case 'g':
189                                    if (!strcmp(optarg, "workarea"))
190                                    {
191                                            width = height = 0;
192                                            break;
193                                    }
194    
195                                  width = strtol(optarg, &p, 10);                                  width = strtol(optarg, &p, 10);
196                                  if (*p == 'x')                                  if (*p == 'x')
197                                          height = strtol(p + 1, NULL, 10);                                          height = strtol(p + 1, NULL, 10);
# Line 218  main(int argc, char *argv[]) Line 227  main(int argc, char *argv[])
227                                  STRNCPY(title, optarg, sizeof(title));                                  STRNCPY(title, optarg, sizeof(title));
228                                  break;                                  break;
229    
230                            case 'D':
231                                    hide_decorations = True;
232                                    break;
233    
234                          case 'h':                          case 'h':
235                          case '?':                          case '?':
236                          default:                          default:

Legend:
Removed from v.259  
changed lines
  Added in v.263

  ViewVC Help
Powered by ViewVC 1.1.26