1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Change to show flag char rather than change colour on bell.

This commit is contained in:
Nicholas Marriott 2007-10-12 12:37:48 +00:00
parent a02638c0bc
commit e5b7001524

View File

@ -1,4 +1,4 @@
/* $Id: status.c,v 1.5 2007-10-12 12:08:51 nicm Exp $ */ /* $Id: status.c,v 1.6 2007-10-12 12:37:48 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -32,6 +32,7 @@ status_write(struct client *c)
struct window *w; struct window *w;
size_t size; size_t size;
u_int i; u_int i;
char flag;
input_store_zero(b, CODE_CURSOROFF); input_store_zero(b, CODE_CURSOROFF);
input_store_two(b, CODE_CURSORMOVE, c->sy - status_lines + 1, 1); input_store_two(b, CODE_CURSORMOVE, c->sy - status_lines + 1, 1);
@ -43,15 +44,14 @@ status_write(struct client *c)
if (w == NULL) if (w == NULL)
continue; continue;
if (session_hasbell(c->session, w)) { flag = ' ';
input_store_two( if (w == c->session->last)
b, CODE_ATTRIBUTES, ATTR_REVERSE, status_colour); flag = '-';
} if (w == c->session->window)
status_print(b, &size, flag = '*';
"%u:%s%s", i, w->name, w == c->session->window ? "*" : "");
if (session_hasbell(c->session, w)) if (session_hasbell(c->session, w))
input_store_two(b, CODE_ATTRIBUTES, 0, status_colour); flag = '!';
status_print(b, &size, " "); status_print(b, &size, "%u:%s%c ", i, w->name, flag);
if (size == 0) if (size == 0)
break; break;