1 /* cmdtab.c 4.5 83/06/15 */ 2 #include "tip.h" 3 4 extern int shell(), lcmd(), getfl(), sendfile(), chdirectory(), 5 finish(), help(), pipefile(), consh(), variable(), 6 cu_take(), cu_put(), dollar(), genbrk(), suspend(); 7 8 esctable_t etable[] = 9 { 10 { '%', NORM, "shell", shell }, 11 { '!', NORM, "local command", lcmd }, 12 { '<', NORM, "receive file from remote host", getfl }, 13 { '>', NORM, "send file to remote host", sendfile }, 14 { 't', NORM, "take file from remote UNIX", cu_take }, 15 { 'p', NORM, "put file to remote UNIX", cu_put }, 16 { '|', NORM, "pipe remote file", pipefile }, 17 #ifdef CONNECT 18 { 'C', NORM, "connect program to remote host",consh }, 19 #endif 20 { 'c', NORM, "change directory", chdirectory }, 21 { '.', NORM, "exit from tip", finish }, 22 {CTRL(d),NORM, "exit from tip", finish }, 23 #ifdef SIGTSTP 24 {CTRL(z),NORM, "suspend tip", suspend }, 25 #endif 26 { 's', NORM, "set variable", variable }, 27 { '?', NORM, "get this summary", help }, 28 { '#', NORM, "send break", genbrk }, 29 { 0, 0, 0 } 30 }; 31