Commit | Line | Data |
---|---|---|
051b1e55 | 1 | /* |
c9686c12 KB |
2 | * Copyright (c) 1983 The Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
cb956e54 | 5 | * %sccs.include.redist.c% |
051b1e55 DF |
6 | */ |
7 | ||
05862919 | 8 | #ifndef lint |
cb956e54 | 9 | static char sccsid[] = "@(#)cmdtab.c 5.6 (Berkeley) %G%"; |
c9686c12 | 10 | #endif /* not lint */ |
05862919 | 11 | |
0535475f BJ |
12 | #include "tip.h" |
13 | ||
05862919 | 14 | extern int shell(), getfl(), sendfile(), chdirectory(); |
6330edbf | 15 | extern int finish(), help(), pipefile(), pipeout(), consh(), variable(); |
05862919 | 16 | extern int cu_take(), cu_put(), dollar(), genbrk(), suspend(); |
0535475f | 17 | |
05862919 SL |
18 | esctable_t etable[] = { |
19 | { '!', NORM, "shell", shell }, | |
0535475f BJ |
20 | { '<', NORM, "receive file from remote host", getfl }, |
21 | { '>', NORM, "send file to remote host", sendfile }, | |
22 | { 't', NORM, "take file from remote UNIX", cu_take }, | |
23 | { 'p', NORM, "put file to remote UNIX", cu_put }, | |
24 | { '|', NORM, "pipe remote file", pipefile }, | |
6330edbf | 25 | { '$', NORM, "pipe local command to remote host", pipeout }, |
0535475f | 26 | #ifdef CONNECT |
6b46907f | 27 | { 'C', NORM, "connect program to remote host",consh }, |
0535475f BJ |
28 | #endif |
29 | { 'c', NORM, "change directory", chdirectory }, | |
9af70182 | 30 | { '.', NORM, "exit from tip", finish }, |
3cd1a53c KB |
31 | {CTRL('d'),NORM,"exit from tip", finish }, |
32 | {CTRL('y'),NORM,"suspend tip (local+remote)", suspend }, | |
33 | {CTRL('z'),NORM,"suspend tip (local only)", suspend }, | |
0535475f | 34 | { 's', NORM, "set variable", variable }, |
061754f3 SL |
35 | { '?', NORM, "get this summary", help }, |
36 | { '#', NORM, "send break", genbrk }, | |
0535475f BJ |
37 | { 0, 0, 0 } |
38 | }; |