version 1.9, 2012/07/10 12:20:23 |
version 1.10, 2012/07/10 12:47:23 |
|
|
} |
} |
|
|
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) { |
|
|
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; |
|
|
"~$ 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" |