Changeset 425c013
- Timestamp:
- Sep 16, 2002, 1:33:00 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 42abb10
- Parents:
- 5145235
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r5145235 r425c013 1 1 $Id$ 2 2 1.2.4 3 'zlog in' will now take an optional thrid argument to set the 4 'tty' variable before setting the zlocation 5 3 6 1.2.3 4 7 Added filters "ping", "auto" and "login" by default. -
commands.c
r5eeea3b r425c013 46 46 OWLCMD_ARGS("zlog", owl_command_zlog, OWL_CTX_ANY, 47 47 "send a login or logout notification", 48 "zlog in \nzlog out",48 "zlog in [tty]\nzlog out", 49 49 "zlog in will send a login notification, zlog out will send a\n" 50 50 "logout notification. By default a login notification is sent\n" 51 51 "when owl is started and a logout notification is sent when owl\n" 52 52 "is exited. This behavior can be changed with the 'startuplogin'\n" 53 "and 'shudownlogout' variables.\n"), 53 "and 'shudownlogout' variables. If a tty is specified for zlog in\n" 54 "then the owl variable 'tty' will be set to that string, causing\n" 55 "it to be used as the zephyr location tty.\n"), 54 56 55 57 OWLCMD_VOID("quit", owl_command_quit, OWL_CTX_ANY, … … 1062 1064 1063 1065 char *owl_command_zlog(int argc, char **argv, char *buff) { 1064 if ( argc != 2) {1066 if ((argc<2) || (argc>3)) { 1065 1067 owl_function_makemsg("Wrong number of arguments for zlog command"); 1066 return NULL;1068 return(NULL); 1067 1069 } 1068 1070 1069 1071 if (!strcmp(argv[1], "in")) { 1072 if (argc>2) { 1073 owl_global_set_tty(&g, argv[2]); 1074 } 1070 1075 owl_function_zlog_in(); 1071 1076 } else if (!strcmp(argv[1], "out")) { 1077 if (argc!=2) { 1078 owl_function_makemsg("Wrong number of arguments for zlog command"); 1079 return(NULL); 1080 } 1072 1081 owl_function_zlog_out(); 1073 1082 } else { 1074 1083 owl_function_makemsg("Invalid subcommand for zlog"); 1075 1084 } 1076 return NULL;1085 return(NULL); 1077 1086 } 1078 1087 -
owl.h
r61e79a9 r425c013 12 12 static const char owl_h_fileIdent[] = "$Id$"; 13 13 14 #define OWL_VERSION 1.2. 315 #define OWL_VERSION_STRING "1.2. 3"14 #define OWL_VERSION 1.2.4 15 #define OWL_VERSION_STRING "1.2.4" 16 16 17 17 #define OWL_DEBUG 0
Note: See TracChangeset
for help on using the changeset viewer.