1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
|
/* Copyright (c) 1993
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
* Copyright (c) 1987 Oliver Laumann
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (see the file COPYING); if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
****************************************************************
*/
#include "rcs.h"
RCS_ID("$Id: comm.c,v 1.10 1993/11/30 19:28:07 mlschroe Exp $ FAU")
#include "config.h"
#include "acls.h"
#include "comm.h"
/* Must be in alpha order ! */
struct comm comms[RC_LAST + 1] =
{
#ifdef MULTIUSER
{ "acladd", ARGS_ONE },
{ "aclchg", ARGS_THREE },
{ "acldel", ARGS_ONE },
{ "aclgrp", ARGS_ONE },
#endif
{ "activity", ARGS_ONE },
{ "aka", NEED_FORE|ARGS_ZEROONE }, /* TO BE REMOVED */
{ "allpartial", NEED_DISPLAY|ARGS_ONE },
{ "at", NEED_DISPLAY|ARGS_TWO|ARGS_ORMORE },
{ "autodetach", ARGS_ONE },
#ifdef AUTO_NUKE
{ "autonuke", NEED_DISPLAY|ARGS_ONE },
#endif
{ "bell", ARGS_ZEROONE },
{ "bell_msg", ARGS_ZEROONE },
{ "bind", ARGS_ONE|ARGS_ORMORE },
#ifdef MAPKEYS
{ "bindkey", ARGS_ZERO|ARGS_ORMORE },
#endif
{ "break", NEED_FORE|ARGS_ZEROONE },
#ifdef COPY_PASTE
{ "bufferfile", ARGS_ZEROONE },
#endif
{ "c1", NEED_FORE|ARGS_ZEROONE },
{ "charset", NEED_FORE|ARGS_ONE },
{ "chdir", ARGS_ZEROONE },
{ "clear", NEED_FORE|ARGS_ZERO },
#ifdef MULTI
{ "clone", NEED_DISPLAY|ARGS_ONE|ARGS_ORMORE },
#endif
{ "colon", NEED_DISPLAY|ARGS_ZERO },
{ "command", NEED_DISPLAY|ARGS_ZERO },
{ "console", NEED_FORE|ARGS_ZEROONE },
#ifdef COPY_PASTE
{ "copy", NEED_FORE|ARGS_ZERO },
{ "crlf", ARGS_ONE },
#endif
{ "debug", ARGS_ZEROONE },
#ifdef AUTO_NUKE
{ "defautonuke", ARGS_ONE },
#endif
{ "defc1", ARGS_ONE },
{ "defcharset", ARGS_ZEROONE },
{ "defescape", ARGS_ONE },
{ "defflow", ARGS_ONETWO },
{ "defgr", ARGS_ONE },
{ "defhstatus", ARGS_ZEROONE },
#ifdef KANJI
{ "defkanji", ARGS_ONE },
#endif
#if defined(UTMPOK) && defined(LOGOUTOK)
{ "deflogin", ARGS_ONE },
#endif
{ "defmode", ARGS_ONE },
{ "defmonitor", ARGS_ONE },
{ "defobuflimit", ARGS_ONE },
#ifdef COPY_PASTE
{ "defscrollback", ARGS_ONE },
#endif
{ "defwrap", ARGS_ONE },
{ "defwritelock", ARGS_ONE },
{ "detach", NEED_DISPLAY|ARGS_ZERO },
{ "digraph", NEED_DISPLAY|ARGS_ZEROONE },
{ "displays", NEED_DISPLAY|ARGS_ZERO },
{ "dumptermcap", NEED_FORE|ARGS_ZERO },
{ "echo", ARGS_ONETWO },
{ "escape", NEED_DISPLAY|ARGS_ONE },
#ifdef PSEUDOS
{ "exec", NEED_FORE|ARGS_ZERO|ARGS_ORMORE },
#endif
{ "flow", NEED_FORE|ARGS_ZEROONE },
{ "gr", NEED_FORE|ARGS_ZEROONE },
{ "hardcopy", NEED_FORE|ARGS_ZERO },
{ "hardcopy_append", ARGS_ONE },
{ "hardcopydir", ARGS_ONE },
{ "hardstatus", NEED_DISPLAY|ARGS_ZEROONE },
{ "height", NEED_DISPLAY|ARGS_ZEROONE },
{ "help", NEED_DISPLAY|ARGS_ZERO },
#ifdef COPY_PASTE
{ "history", NEED_FORE|ARGS_ZERO },
#endif
{ "info", NEED_DISPLAY|ARGS_ZERO },
#ifdef KANJI
{ "kanji", NEED_FORE|ARGS_ONETWO },
#endif
{ "kill", NEED_FORE|ARGS_ZERO },
{ "lastmsg", NEED_DISPLAY|ARGS_ZERO },
{ "license", NEED_DISPLAY|ARGS_ZERO },
#ifdef LOCK
{ "lockscreen", NEED_DISPLAY|ARGS_ZERO },
#endif
{ "log", NEED_FORE|ARGS_ZEROONE },
{ "logfile", ARGS_ZEROONE },
#if defined(UTMPOK) && defined(LOGOUTOK)
{ "login", NEED_FORE|ARGS_ZEROONE },
#endif
#ifdef MAPKEYS
{ "mapdefault", NEED_DISPLAY|ARGS_ZERO },
{ "mapnotnext", NEED_DISPLAY|ARGS_ZERO },
{ "maptimeout", ARGS_ZEROONE },
#endif
#ifdef COPY_PASTE
{ "markkeys", ARGS_ONE },
#endif
{ "meta", NEED_DISPLAY|ARGS_ZERO },
{ "monitor", NEED_FORE|ARGS_ZEROONE },
{ "msgminwait", ARGS_ONE },
{ "msgwait", ARGS_ONE },
#ifdef MULTIUSER
{ "multiuser", ARGS_ONE },
#endif
#ifdef NETHACK
{ "nethack", ARGS_ONE },
#endif
{ "next", NEED_DISPLAY|NEED_FORE|ARGS_ZERO },
{ "number", NEED_FORE|ARGS_ZEROONE },
{ "obuflimit", NEED_DISPLAY|ARGS_ZEROONE },
{ "other", NEED_DISPLAY|NEED_FORE|ARGS_ZERO },
{ "partial", NEED_FORE|ARGS_ZEROONE },
#ifdef PASSWORD
{ "password", ARGS_ZEROONE },
#endif
#ifdef COPY_PASTE
{ "paste", NEED_DISPLAY|ARGS_ZEROONETWO },
{ "pastefont", ARGS_ZEROONE },
#endif
{ "pow_break", NEED_FORE|ARGS_ZEROONE },
#ifdef POW_DETACH
{ "pow_detach", NEED_DISPLAY|ARGS_ZERO },
{ "pow_detach_msg", ARGS_ZEROONE },
#endif
{ "prev", NEED_DISPLAY|NEED_FORE|ARGS_ZERO },
{ "printcmd", ARGS_ZEROONE },
{ "process", NEED_DISPLAY|ARGS_ZEROONE },
{ "quit", ARGS_ZERO },
#ifdef COPY_PASTE
{ "readbuf", NEED_DISPLAY|ARGS_ZERO },
#endif
{ "readreg", ARGS_ZEROONETWO },
{ "redisplay", NEED_DISPLAY|ARGS_ZERO },
{ "register", ARGS_TWO },
#ifdef COPY_PASTE
{ "removebuf", ARGS_ZERO },
#endif
{ "reset", NEED_FORE|ARGS_ZERO },
{ "screen", ARGS_ZERO|ARGS_ORMORE },
#ifdef COPY_PASTE
{ "scrollback", NEED_FORE|ARGS_ONE },
#endif
{ "select", ARGS_ZEROONE },
{ "sessionname", ARGS_ZEROONE },
{ "setenv", ARGS_ZEROONETWO },
{ "shell", ARGS_ONE },
{ "shellaka", ARGS_ONE }, /* TO BE REMOVED */
{ "shelltitle", ARGS_ONE },
{ "silence", NEED_FORE|ARGS_ZEROONE },
{ "silencewait", ARGS_ONE },
{ "sleep", ARGS_ONE },
{ "slowpaste", ARGS_ONE },
{ "sorendition", ARGS_ZEROONETWO },
{ "startup_message", ARGS_ONE },
{ "stuff", NEED_DISPLAY|ARGS_ONE },
#ifdef BSDJOBS
{ "suspend", NEED_DISPLAY|ARGS_ZERO },
#endif
{ "term", ARGS_ONE },
{ "termcap", ARGS_TWOTHREE },
{ "termcapinfo", ARGS_TWOTHREE },
{ "terminfo", ARGS_TWOTHREE },
{ "time", ARGS_ZERO },
{ "title", NEED_FORE|ARGS_ZEROONE },
{ "unsetenv", ARGS_ONE },
{ "vbell", ARGS_ZEROONE },
{ "vbell_msg", ARGS_ZEROONE },
{ "vbellwait", ARGS_ONE },
{ "version", ARGS_ZERO },
{ "wall", NEED_DISPLAY|ARGS_ONE|ARGS_ORMORE },
{ "width", NEED_DISPLAY|ARGS_ZEROONE },
{ "windows", NEED_DISPLAY|ARGS_ZERO },
{ "wrap", NEED_FORE|ARGS_ZEROONE },
#ifdef COPY_PASTE
{ "writebuf", NEED_DISPLAY|ARGS_ZERO },
#endif
{ "writelock", NEED_FORE|ARGS_ZEROONE },
{ "xoff", NEED_DISPLAY|ARGS_ZERO },
{ "xon", NEED_DISPLAY|ARGS_ZERO },
{ "zombie", ARGS_ZEROONE }
};
|