1: /* 2: * Copyright (c) 1983 Regents of the University of California. 3: * All rights reserved. The Berkeley software License Agreement 4: * specifies the terms and conditions for redistribution. 5: */ 6: 7: #ifndef lint 8: static char sccsid[] = "@(#)cmdtab.c 5.4 (Berkeley) 12/22/87"; 9: #endif not lint 10: 11: #include "tip.h" 12: 13: extern int shell(), getfl(), sendfile(), chdirectory(); 14: extern int finish(), help(), pipefile(), pipeout(), consh(), variable(); 15: extern int cu_take(), cu_put(), dollar(), genbrk(), suspend(); 16: 17: esctable_t etable[] = { 18: { '!', NORM, "shell", shell }, 19: { '<', NORM, "receive file from remote host", getfl }, 20: { '>', NORM, "send file to remote host", sendfile }, 21: { 't', NORM, "take file from remote UNIX", cu_take }, 22: { 'p', NORM, "put file to remote UNIX", cu_put }, 23: { '|', NORM, "pipe remote file", pipefile }, 24: { '$', NORM, "pipe local command to remote host", pipeout }, 25: #ifdef CONNECT 26: { 'C', NORM, "connect program to remote host",consh }, 27: #endif 28: { 'c', NORM, "change directory", chdirectory }, 29: { '.', NORM, "exit from tip", finish }, 30: {CTRL(d),NORM,"exit from tip", finish }, 31: {CTRL(y),NORM,"suspend tip (local+remote)", suspend }, 32: {CTRL(z),NORM,"suspend tip (local only)", suspend }, 33: { 's', NORM, "set variable", variable }, 34: { '?', NORM, "get this summary", help }, 35: { '#', NORM, "send break", genbrk }, 36: { 0, 0, 0 } 37: };