diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); +} |