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