/[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 501 by stargo, Fri Oct 17 08:23:47 2003 UTC revision 547 by astrand, Mon Nov 10 15:09:49 2003 UTC
# Line 69  BOOL g_console_session = False; Line 69  BOOL g_console_session = False;
69  extern BOOL g_owncolmap;  extern BOOL g_owncolmap;
70    
71  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
72  BOOL g_rdpsnd = True;  BOOL g_rdpsnd = False;
73  #endif  #endif
74    
75  #ifdef RDP2VNC  #ifdef RDP2VNC
# Line 95  usage(char *program) Line 95  usage(char *program)
95          fprintf(stderr, "   -u: user name\n");          fprintf(stderr, "   -u: user name\n");
96          fprintf(stderr, "   -d: domain\n");          fprintf(stderr, "   -d: domain\n");
97          fprintf(stderr, "   -s: shell\n");          fprintf(stderr, "   -s: shell\n");
         fprintf(stderr, "   -S: caption button size (single application mode)\n");  
98          fprintf(stderr, "   -c: working directory\n");          fprintf(stderr, "   -c: working directory\n");
99          fprintf(stderr, "   -p: password (- to prompt)\n");          fprintf(stderr, "   -p: password (- to prompt)\n");
100          fprintf(stderr, "   -n: client hostname\n");          fprintf(stderr, "   -n: client hostname\n");
101          fprintf(stderr, "   -k: keyboard layout on terminal server (us,sv,gr,etc.)\n");          fprintf(stderr, "   -k: keyboard layout on server (en-us, de, sv, etc.)\n");
102          fprintf(stderr, "   -g: desktop geometry (WxH)\n");          fprintf(stderr, "   -g: desktop geometry (WxH)\n");
103          fprintf(stderr, "   -f: full-screen mode\n");          fprintf(stderr, "   -f: full-screen mode\n");
104          fprintf(stderr, "   -b: force bitmap updates\n");          fprintf(stderr, "   -b: force bitmap updates\n");
# Line 107  usage(char *program) Line 106  usage(char *program)
106          fprintf(stderr, "   -E: disable encryption from client to server\n");          fprintf(stderr, "   -E: disable encryption from client to server\n");
107          fprintf(stderr, "   -m: do not send motion events\n");          fprintf(stderr, "   -m: do not send motion events\n");
108          fprintf(stderr, "   -C: use private colour map\n");          fprintf(stderr, "   -C: use private colour map\n");
109            fprintf(stderr, "   -D: hide window manager decorations\n");
110          fprintf(stderr, "   -K: keep window manager key bindings\n");          fprintf(stderr, "   -K: keep window manager key bindings\n");
111            fprintf(stderr, "   -S: caption button size (single application mode)\n");
112          fprintf(stderr, "   -T: window title\n");          fprintf(stderr, "   -T: window title\n");
113          fprintf(stderr, "   -D: hide window manager decorations\n");          fprintf(stderr, "   -a: connection colour depth\n");
114  #ifdef WITH_RDPSND          fprintf(stderr, "   -r: enable specified device redirection (currently: sound)\n");
         fprintf(stderr, "   -A: disable audio-redirection\n");  
 #endif  
         fprintf(stderr, "   -a: server bpp\n");  
115          fprintf(stderr, "   -0: attach to console\n");          fprintf(stderr, "   -0: attach to console\n");
116          fprintf(stderr, "   -4: use RDP version 4\n");          fprintf(stderr, "   -4: use RDP version 4\n");
117          fprintf(stderr, "   -5: use RDP version 5 (default)\n");          fprintf(stderr, "   -5: use RDP version 5 (default)\n");
# Line 231  main(int argc, char *argv[]) Line 229  main(int argc, char *argv[])
229  #define VNCOPT  #define VNCOPT
230  #endif  #endif
231    
232          while ((c = getopt(argc, argv, VNCOPT "u:d:s:S:c:p:n:k:g:a:fbeEmCKT:AD045h?")) != -1)          while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:a:r:045h?")) != -1)
233          {          {
234                  switch (c)                  switch (c)
235                  {                  {
# Line 262  main(int argc, char *argv[]) Line 260  main(int argc, char *argv[])
260                                  STRNCPY(shell, optarg, sizeof(shell));                                  STRNCPY(shell, optarg, sizeof(shell));
261                                  break;                                  break;
262    
                         case 'S':  
                                 if (!strcmp(optarg, "standard"))  
                                 {  
                                         g_win_button_size = 18;  
                                         break;  
                                 }  
   
                                 g_win_button_size = strtol(optarg, &p, 10);  
   
                                 if (*p)  
                                 {  
                                         error("invalid button size\n");  
                                         return 1;  
                                 }  
   
                                 break;  
   
263                          case 'c':                          case 'c':
264                                  STRNCPY(directory, optarg, sizeof(directory));                                  STRNCPY(directory, optarg, sizeof(directory));
265                                  break;                                  break;
# Line 308  main(int argc, char *argv[]) Line 289  main(int argc, char *argv[])
289                                  break;                                  break;
290    
291                          case 'g':                          case 'g':
292                                    g_fullscreen = False;
293                                  if (!strcmp(optarg, "workarea"))                                  if (!strcmp(optarg, "workarea"))
294                                  {                                  {
295                                          g_width = g_height = 0;                                          g_width = g_height = 0;
# Line 357  main(int argc, char *argv[]) Line 339  main(int argc, char *argv[])
339                                  g_owncolmap = True;                                  g_owncolmap = True;
340                                  break;                                  break;
341    
342                            case 'D':
343                                    g_hide_decorations = True;
344                                    break;
345    
346                          case 'K':                          case 'K':
347                                  g_grab_keyboard = False;                                  g_grab_keyboard = False;
348                                  break;                                  break;
349    
350                          case 'T':                          case 'S':
351                                  STRNCPY(g_title, optarg, sizeof(g_title));                                  if (!strcmp(optarg, "standard"))
352                                    {
353                                            g_win_button_size = 18;
354                                            break;
355                                    }
356    
357                                    g_win_button_size = strtol(optarg, &p, 10);
358    
359                                    if (*p)
360                                    {
361                                            error("invalid button size\n");
362                                            return 1;
363                                    }
364    
365                                  break;                                  break;
366    
367                          case 'D':                          case 'T':
368                                  g_hide_decorations = True;                                  STRNCPY(g_title, optarg, sizeof(g_title));
369                                  break;                                  break;
370    
371                          case 'a':                          case 'a':
# Line 379  main(int argc, char *argv[]) Line 378  main(int argc, char *argv[])
378                                  }                                  }
379                                  break;                                  break;
380    
381                            case 'r':
382                                    if (!strcmp(optarg, "sound"))
383  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
384                          case 'A':                                          g_rdpsnd = True;
385                                  g_rdpsnd = False;  #else
386                                  break;                                          warning("Not compiled with sound support");
387  #endif  #endif
388                                    break;
389    
390                          case '0':                          case '0':
391                                  g_console_session = True;                                  g_console_session = True;
392                                  break;                                  break;
# Line 459  main(int argc, char *argv[]) Line 462  main(int argc, char *argv[])
462    
463  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
464          if (g_rdpsnd)          if (g_rdpsnd)
         {  
465                  rdpsnd_init();                  rdpsnd_init();
         }  
466  #endif  #endif
467          /* rdpdr_init(); */          /* rdpdr_init(); */
468    

Legend:
Removed from v.501  
changed lines
  Added in v.547

  ViewVC Help
Powered by ViewVC 1.1.26