[BACK]Return to command.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cu

Diff for /src/usr.bin/cu/command.c between version 1.9 and 1.10

version 1.9, 2012/07/10 12:20:23 version 1.10, 2012/07/10 12:47:23
Line 195 
Line 195 
 }  }
   
 void  void
   start_record(void)
   {
           const char      *file;
   
           if (record_file != NULL) {
                   fclose(record_file);
                   record_file = NULL;
           }
   
           file = get_input("Record file?");
           if (file == NULL || *file == '\0')
                   return;
   
           record_file = fopen(file, "a");
           if (record_file == NULL)
                   cu_warnx("%s", file);
   }
   
   void
 do_command(char c)  do_command(char c)
 {  {
         switch (c) {          switch (c) {
Line 210 
Line 229 
         case 'C':          case 'C':
                 connect_command();                  connect_command();
                 break;                  break;
           case 'R':
                   start_record();
                   break;
         case 'S':          case 'S':
                 set_speed();                  set_speed();
                 break;                  break;
Line 233 
Line 255 
                     "~$      pipe local command to remote host\r\n"                      "~$      pipe local command to remote host\r\n"
                     "~>      send file to remote host\r\n"                      "~>      send file to remote host\r\n"
                     "~C      connect program to remote host\r\n"                      "~C      connect program to remote host\r\n"
                       "~R      start recording to file\r\n"
                     "~S      set speed\r\n"                      "~S      set speed\r\n"
                     "~X      send file with XMODEM\r\n"                      "~X      send file with XMODEM\r\n"
                     "~?      get this summary\r\n"                      "~?      get this summary\r\n"

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10