cmdtab.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 30 行

C
30
字号
#ifndef lintstatic char sccsid[] = "@(#)cmdtab.c	4.6 (Berkeley) 6/25/83";#endif#include "tip.h"extern	int shell(), getfl(), sendfile(), chdirectory();extern	int finish(), help(), pipefile(), consh(), variable();extern	int 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	{ 'C',  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 },	{CTRL('z'),NORM, "suspend tip",			 suspend },	{ 's',	NORM,	"set variable",			 variable },	{ '?',	NORM,	"get this summary",		 help },	{ '#',	NORM,	"send break",			 genbrk },	{ 0, 0, 0 }};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?