summaryrefslogtreecommitdiffstats
path: root/cmd-show-messages.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-11-25 16:37:30 +0000
committerThomas Adam <thomas@xteddy.org>2015-11-25 16:37:30 +0000
commit890d8da2e3588d416ef178e2e74ed3df226a6040 (patch)
tree3d024b90830e8afe48f75f0cb741965a5bb76015 /cmd-show-messages.c
parent0a2ef2b932f37d54157d82e526a8097caf9143ba (diff)
parentac8678aefe157d7e40c5bcedd12333eaedf0df92 (diff)
Merge branch 'obsd-master'
Conflicts: log.c proc.c tmux.c
Diffstat (limited to 'cmd-show-messages.c')
-rw-r--r--cmd-show-messages.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/cmd-show-messages.c b/cmd-show-messages.c
index d85baba9..d1a8ce88 100644
--- a/cmd-show-messages.c
+++ b/cmd-show-messages.c
@@ -32,8 +32,8 @@ enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_show_messages_entry = {
"show-messages", "showmsgs",
- "IJTt:", 0, 0,
- "[-IJT] " CMD_TARGET_CLIENT_USAGE,
+ "JTt:", 0, 0,
+ "[-JT] " CMD_TARGET_CLIENT_USAGE,
0,
cmd_show_messages_exec
};
@@ -46,27 +46,10 @@ const struct cmd_entry cmd_server_info_entry = {
cmd_show_messages_exec
};
-int cmd_show_messages_server(struct cmd_q *);
int cmd_show_messages_terminals(struct cmd_q *, int);
int cmd_show_messages_jobs(struct cmd_q *, int);
int
-cmd_show_messages_server(struct cmd_q *cmdq)
-{
- char *tim;
-
- tim = ctime(&start_time);
- *strchr(tim, '\n') = '\0';
-
- cmdq_print(cmdq, "started %s", tim);
- cmdq_print(cmdq, "socket path %s", socket_path);
- cmdq_print(cmdq, "debug level %d", debug_level);
- cmdq_print(cmdq, "protocol version %d", PROTOCOL_VERSION);
-
- return (1);
-}
-
-int
cmd_show_messages_terminals(struct cmd_q *cmdq, int blank)
{
struct tty_term *term;
@@ -116,10 +99,6 @@ cmd_show_messages_exec(struct cmd *self, struct cmd_q *cmdq)
int done, blank;
done = blank = 0;
- if (args_has(args, 'I') || self->entry == &cmd_server_info_entry) {
- blank = cmd_show_messages_server(cmdq);
- done = 1;
- }
if (args_has(args, 'T') || self->entry == &cmd_server_info_entry) {
blank = cmd_show_messages_terminals(cmdq, blank);
done = 1;