There is a terminfo entry which is (ab)used for this purpose, and has been the subject of more than one bug report suggesting that it be applied to various terminal descriptions. Referring to
has_status_line hs hs has extra status
from_status_line fsl fs return from status
to_status_line tsl ts move to status line,
these are explained in the section Status Lines:
Some terminals with status lines need special sequences to
access the status line. These may be expressed as a
string with single parameter
tsl which takes the cursor to
a given zero-origin column on the status line.
Offhand, the only terminal emulator which you are likely to be able to use which supports the feature as documented is
An extension would be appropriate. The
screen program documents a possible choice (but after inspecting what it does with the feature, that idea was discarded). ncurses provides an extension which has been in the terminal database a few years, documented in the section on XTerm Extensions:
# TS is a string capability which acts like "tsl", but uses no parameter and
# goes to the first column of the "status line".
Ultimately, anything that uses the feature would inherit from
# These building-blocks allow access to the X titlebar and icon name as a
# status line. There are a few problems in using them in entries:
# a) tsl should have a parameter to denote the column on which to transfer to
# the status line.
# b) the "0" code for xterm updates both icon-title and window title. Some
# window managers such as twm (and possibly window managers descended from
# it such as tvtwm, ctwm, and vtwm) track windows by icon-name. Thus, you
# don't want to mess with icon-name when using those window managers.
# The extension "TS" is preferable, because it does not accept a parameter.
# However, if you are using a non-extended terminfo, "TS" is not visible.
tput program can test this feature.