17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 5*8d489c7aSmuffin 67c478bd9Sstevel@tonic-gate /* 77c478bd9Sstevel@tonic-gate * Copyright (c) 1983 Regents of the University of California. 87c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 97c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 107c478bd9Sstevel@tonic-gate */ 117c478bd9Sstevel@tonic-gate 127c478bd9Sstevel@tonic-gate #include "tip.h" 137c478bd9Sstevel@tonic-gate 14*8d489c7aSmuffin extern void shell(int), getfl(int), tip_sendfile(int), chdirectory(int); 15*8d489c7aSmuffin extern void finish(int), help(int), pipefile(int), pipeout(int); 16*8d489c7aSmuffin extern void consh(int), variable(int), cu_take(int), cu_put(int); 17*8d489c7aSmuffin extern void genbrk(int), suspend(int); 187c478bd9Sstevel@tonic-gate 197c478bd9Sstevel@tonic-gate esctable_t etable[] = { 207c478bd9Sstevel@tonic-gate { '!', NORM, "shell", shell }, 217c478bd9Sstevel@tonic-gate { '<', NORM, "receive file from remote host", getfl }, 22*8d489c7aSmuffin { '>', NORM, "send file to remote host", tip_sendfile }, 237c478bd9Sstevel@tonic-gate { 't', NORM, "take file from remote UNIX", cu_take }, 247c478bd9Sstevel@tonic-gate { 'p', NORM, "put file to remote UNIX", cu_put }, 257c478bd9Sstevel@tonic-gate { '|', NORM, "pipe remote file", pipefile }, 267c478bd9Sstevel@tonic-gate { 'C', NORM, "connect program to remote host", consh }, 277c478bd9Sstevel@tonic-gate { 'c', NORM, "change directory", chdirectory }, 287c478bd9Sstevel@tonic-gate { '.', NORM, "exit from tip", finish }, 297c478bd9Sstevel@tonic-gate {_CTRL('d'), NORM, "exit from tip", finish }, 307c478bd9Sstevel@tonic-gate { '$', NORM, "pipe local command to remote host", pipeout }, 317c478bd9Sstevel@tonic-gate {_CTRL('y'), NORM, "suspend tip (local only)", suspend }, 327c478bd9Sstevel@tonic-gate {_CTRL('z'), NORM, "suspend tip (local+remote)", suspend }, 337c478bd9Sstevel@tonic-gate { 's', NORM, "set variable", variable }, 347c478bd9Sstevel@tonic-gate { '?', NORM, "get this summary", help }, 357c478bd9Sstevel@tonic-gate { '#', NORM, "send break", genbrk }, 367c478bd9Sstevel@tonic-gate { 0, 0, 0 } 377c478bd9Sstevel@tonic-gate }; 38