Commit | Line | Data |
---|---|---|
051b1e55 | 1 | /* |
c9686c12 KB |
2 | * Copyright (c) 1983 The Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that the above copyright notice and this paragraph are | |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
051b1e55 DF |
16 | */ |
17 | ||
05862919 | 18 | #ifndef lint |
c9686c12 KB |
19 | static char sccsid[] = "@(#)cmdtab.c 5.5 (Berkeley) %G%"; |
20 | #endif /* not lint */ | |
05862919 | 21 | |
0535475f BJ |
22 | #include "tip.h" |
23 | ||
05862919 | 24 | extern int shell(), getfl(), sendfile(), chdirectory(); |
6330edbf | 25 | extern int finish(), help(), pipefile(), pipeout(), consh(), variable(); |
05862919 | 26 | extern int cu_take(), cu_put(), dollar(), genbrk(), suspend(); |
0535475f | 27 | |
05862919 SL |
28 | esctable_t etable[] = { |
29 | { '!', NORM, "shell", shell }, | |
0535475f BJ |
30 | { '<', NORM, "receive file from remote host", getfl }, |
31 | { '>', NORM, "send file to remote host", sendfile }, | |
32 | { 't', NORM, "take file from remote UNIX", cu_take }, | |
33 | { 'p', NORM, "put file to remote UNIX", cu_put }, | |
34 | { '|', NORM, "pipe remote file", pipefile }, | |
6330edbf | 35 | { '$', NORM, "pipe local command to remote host", pipeout }, |
0535475f | 36 | #ifdef CONNECT |
6b46907f | 37 | { 'C', NORM, "connect program to remote host",consh }, |
0535475f BJ |
38 | #endif |
39 | { 'c', NORM, "change directory", chdirectory }, | |
9af70182 | 40 | { '.', NORM, "exit from tip", finish }, |
3cd1a53c KB |
41 | {CTRL('d'),NORM,"exit from tip", finish }, |
42 | {CTRL('y'),NORM,"suspend tip (local+remote)", suspend }, | |
43 | {CTRL('z'),NORM,"suspend tip (local only)", suspend }, | |
0535475f | 44 | { 's', NORM, "set variable", variable }, |
061754f3 SL |
45 | { '?', NORM, "get this summary", help }, |
46 | { '#', NORM, "send break", genbrk }, | |
0535475f BJ |
47 | { 0, 0, 0 } |
48 | }; |