1161754Sru/*	$OpenBSD: cmdtab.c,v 1.7 2006/03/17 14:43:06 moritz Exp $	*/
288276Smarkm/*	$NetBSD: cmdtab.c,v 1.3 1994/12/08 09:30:46 jtc Exp $	*/
388276Smarkm
47527Sjkh/*
57527Sjkh * Copyright (c) 1983, 1993
67527Sjkh *	The Regents of the University of California.  All rights reserved.
77527Sjkh *
87527Sjkh * Redistribution and use in source and binary forms, with or without
97527Sjkh * modification, are permitted provided that the following conditions
107527Sjkh * are met:
117527Sjkh * 1. Redistributions of source code must retain the above copyright
127527Sjkh *    notice, this list of conditions and the following disclaimer.
137527Sjkh * 2. Redistributions in binary form must reproduce the above copyright
147527Sjkh *    notice, this list of conditions and the following disclaimer in the
157527Sjkh *    documentation and/or other materials provided with the distribution.
16161754Sru * 3. Neither the name of the University nor the names of its contributors
177527Sjkh *    may be used to endorse or promote products derived from this software
187527Sjkh *    without specific prior written permission.
197527Sjkh *
207527Sjkh * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
217527Sjkh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
227527Sjkh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
237527Sjkh * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
247527Sjkh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
257527Sjkh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
267527Sjkh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
277527Sjkh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
287527Sjkh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
297527Sjkh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
307527Sjkh * SUCH DAMAGE.
317527Sjkh */
327527Sjkh
3388276Smarkm#include <sys/cdefs.h>
3488276Smarkm__FBSDID("$FreeBSD: releng/10.3/usr.bin/tip/tip/cmdtab.c 161781 2006-08-31 19:19:44Z ru $");
3588276Smarkm
367527Sjkh#ifndef lint
3728365Scharnier#if 0
387527Sjkhstatic char sccsid[] = "@(#)cmdtab.c	8.1 (Berkeley) 6/6/93";
39161754Srustatic const char rcsid[] = "$OpenBSD: cmdtab.c,v 1.7 2006/03/17 14:43:06 moritz Exp $";
4028365Scharnier#endif
417527Sjkh#endif /* not lint */
427527Sjkh
437527Sjkh#include "tip.h"
447527Sjkh
457527Sjkhesctable_t etable[] = {
467527Sjkh	{ '!',	NORM,	"shell",			 shell },
477527Sjkh	{ '<',	NORM,	"receive file from remote host", getfl },
487527Sjkh	{ '>',	NORM,	"send file to remote host",	 sendfile },
497527Sjkh	{ 't',	NORM,	"take file from remote UNIX",	 cu_take },
507527Sjkh	{ 'p',	NORM,	"put file to remote UNIX",	 cu_put },
517527Sjkh	{ '|',	NORM,	"pipe remote file",		 pipefile },
527527Sjkh	{ '$',	NORM,	"pipe local command to remote host", pipeout },
5388276Smarkm#ifdef CONNECT
547527Sjkh	{ 'C',  NORM,	"connect program to remote host",consh },
557527Sjkh#endif
567527Sjkh	{ 'c',	NORM,	"change directory",		 chdirectory },
577527Sjkh	{ '.',	NORM,	"exit from tip",		 finish },
587527Sjkh	{CTRL('d'),NORM,"exit from tip",		 finish },
597527Sjkh	{CTRL('y'),NORM,"suspend tip (local+remote)",	 suspend },
607527Sjkh	{CTRL('z'),NORM,"suspend tip (local only)",	 suspend },
617527Sjkh	{ 's',	NORM,	"set variable",			 variable },
6288276Smarkm	{ 'v',	NORM,	"list variables",		 listvariables },
637527Sjkh	{ '?',	NORM,	"get this summary",		 help },
647527Sjkh	{ '#',	NORM,	"send break",			 genbrk },
65161781Sru	{ '\0',	0,	NULL,				 NULL }
667527Sjkh};
67