ptyfwd: ellipsize overly long window titles
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Nov 2024 21:18:05 +0000 (22:18 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Nov 2024 01:07:25 +0000 (10:07 +0900)
commitead9ef50276071059a8582b124fe841867a9628d
tree97c3a7214165398fb861528bc7573574c181de28
parente2f82f61510ac8cea86a32d269df346e24c55c3a
ptyfwd: ellipsize overly long window titles

Apparently some terminal emulators have problems with overly long
titles, hence truncate them at some safe length (128).

Also, when parsing ANSI sequences ourselves accept longer sequences
(192), after all we should be fine when parsing our own title sequences.

Fixes: #35104
src/shared/ptyfwd.c