xref: /onnv-gate/usr/src/cmd/tip/cmdtab.c (revision 549:9e644232f978)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
30Sstevel@tonic-gate  * Use is subject to license terms.
40Sstevel@tonic-gate  */
5*549Smuffin 
60Sstevel@tonic-gate /*
70Sstevel@tonic-gate  * Copyright (c) 1983 Regents of the University of California.
80Sstevel@tonic-gate  * All rights reserved.  The Berkeley software License Agreement
90Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
100Sstevel@tonic-gate  */
110Sstevel@tonic-gate 
12*549Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
130Sstevel@tonic-gate 
140Sstevel@tonic-gate #include "tip.h"
150Sstevel@tonic-gate 
16*549Smuffin extern void	shell(int), getfl(int), tip_sendfile(int), chdirectory(int);
17*549Smuffin extern void	finish(int), help(int), pipefile(int), pipeout(int);
18*549Smuffin extern void	consh(int), variable(int), cu_take(int), cu_put(int);
19*549Smuffin extern void	genbrk(int), suspend(int);
200Sstevel@tonic-gate 
210Sstevel@tonic-gate esctable_t etable[] = {
220Sstevel@tonic-gate 	{ '!',	NORM,	"shell",			 shell },
230Sstevel@tonic-gate 	{ '<',	NORM,	"receive file from remote host", getfl },
24*549Smuffin 	{ '>',	NORM,	"send file to remote host",	 tip_sendfile },
250Sstevel@tonic-gate 	{ 't',	NORM,	"take file from remote UNIX",	 cu_take },
260Sstevel@tonic-gate 	{ 'p',	NORM,	"put file to remote UNIX",	 cu_put },
270Sstevel@tonic-gate 	{ '|',	NORM,	"pipe remote file",		 pipefile },
280Sstevel@tonic-gate 	{ 'C',  NORM,	"connect program to remote host", consh },
290Sstevel@tonic-gate 	{ 'c',	NORM,	"change directory",		 chdirectory },
300Sstevel@tonic-gate 	{ '.',	NORM,	"exit from tip",		 finish },
310Sstevel@tonic-gate 	{_CTRL('d'), NORM, "exit from tip",		 finish },
320Sstevel@tonic-gate 	{ '$',	NORM,	"pipe local command to remote host", pipeout },
330Sstevel@tonic-gate 	{_CTRL('y'), NORM, "suspend tip (local only)",	 suspend },
340Sstevel@tonic-gate 	{_CTRL('z'), NORM, "suspend tip (local+remote)", suspend },
350Sstevel@tonic-gate 	{ 's',	NORM,	"set variable",			 variable },
360Sstevel@tonic-gate 	{ '?',	NORM,	"get this summary",		 help },
370Sstevel@tonic-gate 	{ '#',	NORM,	"send break",			 genbrk },
380Sstevel@tonic-gate 	{ 0, 0, 0 }
390Sstevel@tonic-gate };
40