mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Support the bright fg/bg colour SGR 90-97 and 100-107.
Reported by Tim Allen.
This commit is contained in:
parent
1f22a199fb
commit
c2b8f3b55a
22
input.c
22
input.c
@ -1470,6 +1470,28 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
|
|||||||
gc->flags &= ~GRID_FLAG_BG256;
|
gc->flags &= ~GRID_FLAG_BG256;
|
||||||
gc->bg = 8;
|
gc->bg = 8;
|
||||||
break;
|
break;
|
||||||
|
case 90:
|
||||||
|
case 91:
|
||||||
|
case 92:
|
||||||
|
case 93:
|
||||||
|
case 94:
|
||||||
|
case 95:
|
||||||
|
case 96:
|
||||||
|
case 97:
|
||||||
|
gc->flags |= GRID_FLAG_FG256;
|
||||||
|
gc->fg = m - 82;
|
||||||
|
break;
|
||||||
|
case 100:
|
||||||
|
case 101:
|
||||||
|
case 102:
|
||||||
|
case 103:
|
||||||
|
case 104:
|
||||||
|
case 105:
|
||||||
|
case 106:
|
||||||
|
case 107:
|
||||||
|
gc->flags |= GRID_FLAG_BG256;
|
||||||
|
gc->bg = m - 92;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user