summaryrefslogtreecommitdiffstats
path: root/src/recite.rs
diff options
context:
space:
mode:
authorRory Dudley2024-12-17 05:23:40 -0700
committerRory Dudley2024-12-17 05:23:40 -0700
commit9bd00b9c4fe9d742fff87c1db6b6469449103900 (patch)
tree659ebf8ec3a9d4c5a12fedeafcdc20cf3fa20667 /src/recite.rs
parentb4128c1cbd14216d29811640dfd0bc44f143b8ca (diff)
downloaddwarvish-9bd00b9c4fe9d742fff87c1db6b6469449103900.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/recite.rs')
0 files changed, 0 insertions, 0 deletions