diff options
author | Rory Dudley | 2024-12-17 05:23:40 -0700 |
---|---|---|
committer | Rory Dudley | 2024-12-17 05:23:40 -0700 |
commit | 9bd00b9c4fe9d742fff87c1db6b6469449103900 (patch) | |
tree | 659ebf8ec3a9d4c5a12fedeafcdc20cf3fa20667 /src/poem/anthology/source.rs | |
parent | b4128c1cbd14216d29811640dfd0bc44f143b8ca (diff) | |
download | dwarvish-titles.tar.gz |
Preliminary support for updating titletitles
Most terminal emulators seem to support setting their title with a
special control sequence: "\e]0;<title>\a". Or in Rust:
"\x1b]0;<title>\x07". This patch adds some code that updates the
terminal emulator's title with the $(pwd), when at the prompt, or the
command that was issued by the user (max of 32 characters for now).
There are no configuration options as of yet, and also it does not
appear to work with tmux.
Notes
Notes:
Out of the box, this should be disabled by default, and only enabled
with a configuration option. Maybe some other options to tune it as well
(such as max length to display, etc).
Diffstat (limited to 'src/poem/anthology/source.rs')
0 files changed, 0 insertions, 0 deletions