version 1.7, 2012/07/10 10:56:12 |
version 1.8, 2012/07/10 11:42:02 |
|
|
void pipe_command(void); |
void pipe_command(void); |
void connect_command(void); |
void connect_command(void); |
void send_file(void); |
void send_file(void); |
|
void send_xmodem(void); |
|
|
void |
void |
pipe_command(void) |
pipe_command(void) |
|
|
} |
} |
|
|
void |
void |
|
send_xmodem(void) |
|
{ |
|
const char *file; |
|
char *expanded; |
|
|
|
file = get_input("Local file?"); |
|
if (file == NULL || *file == '\0') |
|
return; |
|
|
|
expanded = tilde_expand(file); |
|
xmodem_send(expanded); |
|
free(expanded); |
|
} |
|
|
|
void |
set_speed(void) |
set_speed(void) |
{ |
{ |
const char *s, *errstr; |
const char *s, *errstr; |
|
|
break; |
break; |
case 'S': |
case 'S': |
set_speed(); |
set_speed(); |
|
break; |
|
case 'X': |
|
send_xmodem(); |
break; |
break; |
case '$': |
case '$': |
pipe_command(); |
pipe_command(); |