mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Add common IS_PRINTABLE macro.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b8380772e2
commit
7c84b6fc2e
4 changed files with 5 additions and 5 deletions
|
|
@ -232,7 +232,7 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos)
|
|||
|
||||
if (entry->hidden)
|
||||
term_addch(root_window, ' ');
|
||||
else if (*p >= 32 && (*p < 0x7F || *p > 0x9F))
|
||||
else if (IS_PRINTABLE(*p))
|
||||
term_add_unichar(root_window, *p);
|
||||
else {
|
||||
term_set_color(root_window, ATTR_RESET|ATTR_REVERSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue