mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Pass attributes around as flags rather than as a list of escape codes.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user