From eb256cbcbed3431ec5a330fe6dcb12f75ec76c8a Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 29 Mar 2001 04:29:15 +0000 Subject: better command functionality --- src/actions.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index debc821..44017fd 100644 --- a/src/actions.c +++ b/src/actions.c @@ -147,12 +147,12 @@ user_command user_commands[] = {"bind", cmd_bind, arg_VOID}, {"source", cmd_source, arg_STRING}, {"escape", cmd_escape, arg_STRING}, + {"echo", cmd_echo, arg_STRING}, /* the following screen commands may or may not be able to be implemented. See the screen documentation for what should be emulated with these commands */ - {"echo", cmd_unimplemented, arg_VOID}, {"stuff", cmd_unimplemented, arg_VOID}, {"number", cmd_unimplemented, arg_VOID}, {"hardcopy", cmd_unimplemented, arg_VOID}, @@ -754,3 +754,10 @@ cmd_escape (void *data) message (" escape: could not parse key description "); } } + +/* User accessible call to display the passed in string. */ +void +cmd_echo (void *data) +{ + if (data) message ((char *)data); +} -- cgit v1.2.3