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