BSD 4_2 release
[unix-history] / usr / src / usr.bin / tip / cmdtab.c
CommitLineData
05862919 1#ifndef lint
0f4556f1 2static char sccsid[] = "@(#)cmdtab.c 4.6 (Berkeley) 6/25/83";
05862919
SL
3#endif
4
0535475f
BJ
5#include "tip.h"
6
05862919
SL
7extern int shell(), getfl(), sendfile(), chdirectory();
8extern int finish(), help(), pipefile(), consh(), variable();
9extern int cu_take(), cu_put(), dollar(), genbrk(), suspend();
0535475f 10
05862919
SL
11esctable_t etable[] = {
12 { '!', NORM, "shell", shell },
0535475f
BJ
13 { '<', NORM, "receive file from remote host", getfl },
14 { '>', NORM, "send file to remote host", sendfile },
15 { 't', NORM, "take file from remote UNIX", cu_take },
16 { 'p', NORM, "put file to remote UNIX", cu_put },
17 { '|', NORM, "pipe remote file", pipefile },
18#ifdef CONNECT
6b46907f 19 { 'C', NORM, "connect program to remote host",consh },
0535475f
BJ
20#endif
21 { 'c', NORM, "change directory", chdirectory },
9af70182 22 { '.', NORM, "exit from tip", finish },
0535475f 23 {CTRL(d),NORM, "exit from tip", finish },
3f48242d 24 {CTRL(z),NORM, "suspend tip", suspend },
0535475f 25 { 's', NORM, "set variable", variable },
061754f3
SL
26 { '?', NORM, "get this summary", help },
27 { '#', NORM, "send break", genbrk },
0535475f
BJ
28 { 0, 0, 0 }
29};