xref: /titanic_44/usr/src/cmd/tip/cmdtab.c (revision b7f45089ccbe01bab3d7c7377b49d80d2ae18a69)
1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 /*
6  * Copyright (c) 1983 Regents of the University of California.
7  * All rights reserved.  The Berkeley software License Agreement
8  * specifies the terms and conditions for redistribution.
9  */
10 
11 #ident	"%Z%%M%	%I%	%E% SMI"	/* from UCB 5.3 5/5/86 */
12 
13 #include "tip.h"
14 
15 extern	int shell(), getfl(), sendfile(), chdirectory();
16 extern	int finish(), help(), pipefile(), pipeout(), consh(), variable();
17 extern	int cu_take(), cu_put(), dollar(), genbrk(), suspend();
18 
19 esctable_t etable[] = {
20 	{ '!',	NORM,	"shell",			 shell },
21 	{ '<',	NORM,	"receive file from remote host", getfl },
22 	{ '>',	NORM,	"send file to remote host",	 sendfile },
23 	{ 't',	NORM,	"take file from remote UNIX",	 cu_take },
24 	{ 'p',	NORM,	"put file to remote UNIX",	 cu_put },
25 	{ '|',	NORM,	"pipe remote file",		 pipefile },
26 	{ 'C',  NORM,	"connect program to remote host", consh },
27 	{ 'c',	NORM,	"change directory",		 chdirectory },
28 	{ '.',	NORM,	"exit from tip",		 finish },
29 	{_CTRL('d'), NORM, "exit from tip",		 finish },
30 	{ '$',	NORM,	"pipe local command to remote host", pipeout },
31 	{_CTRL('y'), NORM, "suspend tip (local only)",	 suspend },
32 	{_CTRL('z'), NORM, "suspend tip (local+remote)", suspend },
33 	{ 's',	NORM,	"set variable",			 variable },
34 	{ '?',	NORM,	"get this summary",		 help },
35 	{ '#',	NORM,	"send break",			 genbrk },
36 	{ 0, 0, 0 }
37 };
38