summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-03-29 04:29:15 +0000
committersabetts <sabetts>2001-03-29 04:29:15 +0000
commiteb256cbcbed3431ec5a330fe6dcb12f75ec76c8a (patch)
treed57dd638f39dc32492f92ac86fd16c88929bc0a8 /src/actions.c
parent889c6fc041fe9af255f609ba434eceab74491e8c (diff)
downloadratpoison-eb256cbcbed3431ec5a330fe6dcb12f75ec76c8a.zip
better command functionality
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c9
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);
+}