4.1cBSD/usr/src/usr.bin/tip/cmdtab.c

Compare this file to the similar file:
Show the results in this format:

/*	cmdtab.c	4.4	81/11/29	*/
#include "tip.h"

extern int shell(), getfl(), sendfile(), chdirectory(),
	finish(), help(), pipefile(), consh(), variable(),
	cu_take(), cu_put(), dollar(), genbrk(), suspend();

esctable_t etable[] =
{
	{ '!',	NORM,	"shell",			 shell },
	{ '<',	NORM,	"receive file from remote host", getfl },
	{ '>',	NORM,	"send file to remote host",	 sendfile },
	{ 't',	NORM,	"take file from remote UNIX",	 cu_take },
	{ 'p',	NORM,	"put file to remote UNIX",	 cu_put },
	{ '|',	NORM,	"pipe remote file",		 pipefile },
#ifdef CONNECT
	{ '%',  NORM,	"connect program to remote host",consh },
#endif
	{ 'c',	NORM,	"change directory",		 chdirectory },
	{ '.',	NORM,	"exit from tip",		 finish },
	{CTRL(d),NORM,	"exit from tip",		 finish },
#ifdef SIGTSTP
	{CTRL(z),NORM,	"suspend tip",			 suspend },
#endif
	{ 's',	NORM,	"set variable",			 variable },
	{ '?',	NORM,	"get this summary",		 help },
	{ '#',	NORM,	"send break",			 genbrk },
	{ 0, 0, 0 }
};