mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
Change TUI resize to use an extended terminal capability.
... rather than hardwiring the string and testing the terminal type every time the screen is re-sized.
This commit is contained in:
@@ -1133,9 +1133,9 @@ static void fix_terminfo(TUIData *data)
|
|||||||
|
|
||||||
// Only define this capability for terminal types that we know understand it.
|
// Only define this capability for terminal types that we know understand it.
|
||||||
if (data->term == kTermDTTerm // originated this extension
|
if (data->term == kTermDTTerm // originated this extension
|
||||||
|| data->term == kTermXTerm // per xterm ctlseqs doc
|
|| data->term == kTermXTerm // per xterm ctlseqs doco
|
||||||
|| data->term == kTermKonsole // per commentary in VT102Emulation.cpp
|
|| data->term == kTermKonsole // per commentary in VT102Emulation.cpp
|
||||||
|| data->term == kTermTeraTerm // per "Supported Control Functions" doc
|
|| data->term == kTermTeraTerm // per TeraTerm "Supported Control Functions" doco
|
||||||
|| data->term == kTermRxvt) { // per command.C
|
|| data->term == kTermRxvt) { // per command.C
|
||||||
data->unibi_ext.resize_screen = (int)unibi_add_ext_str(ut, NULL,
|
data->unibi_ext.resize_screen = (int)unibi_add_ext_str(ut, NULL,
|
||||||
"\x1b[8;%p1%d;%p2%dt");
|
"\x1b[8;%p1%d;%p2%dt");
|
||||||
|
Reference in New Issue
Block a user