diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 20:45:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 20:45:21 +0000 |
commit | 74d8f0bf1dda71efe96e8702e3313bbcd879abfb (patch) | |
tree | e55b409d90a323ad13eb789ef34b45e634d607f8 /key-bindings.c | |
parent | c3b7a49cc1b7c1a7f9805f17c33a4cd4533b82b3 (diff) | |
download | rtmux-74d8f0bf1dda71efe96e8702e3313bbcd879abfb.tar.gz rtmux-74d8f0bf1dda71efe96e8702e3313bbcd879abfb.tar.bz2 rtmux-74d8f0bf1dda71efe96e8702e3313bbcd879abfb.zip |
Command prompt for interactive commands.
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/key-bindings.c b/key-bindings.c index f9413190..8df7791a 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.31 2008-06-16 17:35:40 nicm Exp $ */ +/* $Id: key-bindings.c,v 1.32 2008-06-19 20:45:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -26,10 +26,6 @@ struct bindings key_bindings; -void printflike2 key_bindings_error(struct cmd_ctx *, const char *, ...); -void printflike2 key_bindings_print(struct cmd_ctx *, const char *, ...); -void printflike2 key_bindings_info(struct cmd_ctx *, const char *, ...); - void key_bindings_add(int key, struct cmd *cmd) { @@ -112,6 +108,7 @@ key_bindings_init(void) { '=', &cmd_scroll_mode_entry }, { '[', &cmd_copy_mode_entry }, { ']', &cmd_paste_buffer_entry }, + { ':', &cmd_command_prompt_entry }, { META, &cmd_send_prefix_entry }, }; u_int i; @@ -156,7 +153,7 @@ key_bindings_error(struct cmd_ctx *ctx, const char *fmt, ...) va_end(ap); *msg = toupper((u_char) *msg); - server_write_message(ctx->curclient, "%s", msg); + server_set_client_message(ctx->curclient, msg); xfree(msg); } @@ -187,7 +184,7 @@ key_bindings_info(struct cmd_ctx *ctx, const char *fmt, ...) va_end(ap); *msg = toupper((u_char) *msg); - server_write_message(ctx->curclient, "%s", msg); + server_set_client_message(ctx->curclient, msg); xfree(msg); } |