diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-01 14:18:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-01 14:18:42 +0000 |
commit | 872696f7819f20eb5fdaa53c16221cf614952eb7 (patch) | |
tree | 2afd0be07b4cbd0340a50185e7c690984685399b /server-fn.c | |
parent | 9d563c340b16dfe0d4b3cd789ffbeda0d4d1e589 (diff) |
Pass attributes around as flags rather than as a list of escape codes.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server-fn.c b/server-fn.c index 598632b2..6b14c0ad 100644 --- a/server-fn.c +++ b/server-fn.c @@ -1,4 +1,4 @@ -/* $Id: server-fn.c,v 1.8 2007-09-29 13:22:15 nicm Exp $ */ +/* $Id: server-fn.c,v 1.9 2007-10-01 14:18:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -203,9 +203,7 @@ server_write_message(struct client *c, const char *fmt, ...) input_store_zero(c->out, CODE_CURSOROFF); input_store_two(c->out, CODE_CURSORMOVE, c->sy, 1); - input_store_one(c->out, CODE_ATTRIBUTES, 2); - input_store16(c->out, 0); - input_store16(c->out, 7); + input_store_two(c->out, CODE_ATTRIBUTES, ATTR_REVERSE, 0x88); va_start(ap, fmt); xvasprintf(&msg, fmt, ap); va_end(ap); |