Use XTVERSION for terminal-specific workarounds

As mentioned in earlier commit
("Query terminal before reading config").

Closes #11812
This commit is contained in:
Johannes Altmanninger
2025-09-21 23:55:07 +02:00
parent 99854c107a
commit c31e769f7d
10 changed files with 74 additions and 58 deletions

View File

@@ -1693,6 +1693,10 @@ Fish also provides additional information through the values of certain environm
the process ID (PID) of the shell.
.. envvar:: fish_terminal
the name and version of the terminal fish is running inside (for example as reported via :ref:`XTVERSION <term-compat-xtversion>`).
.. envvar:: history
a list containing the last commands that were entered.

View File

@@ -224,9 +224,12 @@ Optional Commands
- Ss
- Set cursor style (DECSCUSR); Ps is 2, 4 or 6 for block, underscore or line shape.
- VT520
* - ``\e[ Ps q``
* - .. _term-compat-xtversion:
``\e[ Ps q``
- n/a
- Request terminal name and version (XTVERSION).
This is only used for temporary workarounds for incompatible terminals.
- XTerm
* - ``\e[?25h``
- cvvis