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 12*8d489c7aSmuffin #pragma ident "%Z%%M% %I% %E% SMI" 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gate #include "tip.h" 157c478bd9Sstevel@tonic-gate 16*8d489c7aSmuffin extern void shell(int), getfl(int), tip_sendfile(int), chdirectory(int); 17*8d489c7aSmuffin extern void finish(int), help(int), pipefile(int), pipeout(int); 18*8d489c7aSmuffin extern void consh(int), variable(int), cu_take(int), cu_put(int); 19*8d489c7aSmuffin extern void genbrk(int), suspend(int); 207c478bd9Sstevel@tonic-gate 217c478bd9Sstevel@tonic-gate esctable_t etable[] = { 227c478bd9Sstevel@tonic-gate { '!', NORM, "shell", shell }, 237c478bd9Sstevel@tonic-gate { '<', NORM, "receive file from remote host", getfl }, 24*8d489c7aSmuffin { '>', NORM, "send file to remote host", tip_sendfile }, 257c478bd9Sstevel@tonic-gate { 't', NORM, "take file from remote UNIX", cu_take }, 267c478bd9Sstevel@tonic-gate { 'p', NORM, "put file to remote UNIX", cu_put }, 277c478bd9Sstevel@tonic-gate { '|', NORM, "pipe remote file", pipefile }, 287c478bd9Sstevel@tonic-gate { 'C', NORM, "connect program to remote host", consh }, 297c478bd9Sstevel@tonic-gate { 'c', NORM, "change directory", chdirectory }, 307c478bd9Sstevel@tonic-gate { '.', NORM, "exit from tip", finish }, 317c478bd9Sstevel@tonic-gate {_CTRL('d'), NORM, "exit from tip", finish }, 327c478bd9Sstevel@tonic-gate { '$', NORM, "pipe local command to remote host", pipeout }, 337c478bd9Sstevel@tonic-gate {_CTRL('y'), NORM, "suspend tip (local only)", suspend }, 347c478bd9Sstevel@tonic-gate {_CTRL('z'), NORM, "suspend tip (local+remote)", suspend }, 357c478bd9Sstevel@tonic-gate { 's', NORM, "set variable", variable }, 367c478bd9Sstevel@tonic-gate { '?', NORM, "get this summary", help }, 377c478bd9Sstevel@tonic-gate { '#', NORM, "send break", genbrk }, 387c478bd9Sstevel@tonic-gate { 0, 0, 0 } 397c478bd9Sstevel@tonic-gate }; 40