diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 18:27:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-19 18:27:55 +0000 |
commit | 9ef5bdc7c058854f902dd42f79b6b7454331a98e (patch) | |
tree | 6a51725cd572de82098ea450422b5510a938e169 /tmux.h | |
parent | 99df48d70f10dcf8f95d4684262a3392d72ee9c6 (diff) | |
download | rtmux-9ef5bdc7c058854f902dd42f79b6b7454331a98e.tar.gz rtmux-9ef5bdc7c058854f902dd42f79b6b7454331a98e.tar.bz2 rtmux-9ef5bdc7c058854f902dd42f79b6b7454331a98e.zip |
Show status messages without blocking the server.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.151 2008-06-18 20:58:03 nicm Exp $ */ +/* $Id: tmux.h,v 1.152 2008-06-19 18:27:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -664,7 +664,7 @@ struct client { char *title; struct tty tty; - struct timespec status_ts; + struct timespec status_timer; u_int sx; u_int sy; @@ -674,9 +674,15 @@ struct client { #define CLIENT_MOUSE 0x4 #define CLIENT_REDRAW 0x8 #define CLIENT_STATUS 0x10 -#define CLIENT_CLEAR 0x20 int flags; + char *message_string; + struct timespec message_timer; + + char *prompt_string; + char *prompt_buffer; + size_t prompt_size; + struct session *session; }; ARRAY_DECL(clients, struct client *); @@ -949,6 +955,8 @@ int server_start(const char *); int server_msg_dispatch(struct client *); /* server-fn.c */ +void server_set_client_message(struct client *, const char *); +void server_clear_client_message(struct client *); struct session *server_extract_session( struct msg_command_data *, char *, char **); void server_write_client( @@ -967,6 +975,7 @@ void printflike2 server_write_message(struct client *, const char *, ...); /* status.c */ void status_redraw(struct client *c); +void status_message_redraw(struct client *c); /* resize.c */ void recalculate_sizes(void); |