docs: OSC 133

The "end" termcode is not actually needed for our purposes. And the
suggested $PS1 has trouble with bash's "reverse find" (CTRL-r) feature,
probably because I did it wrong...
This commit is contained in:
Justin M. Keyes
2025-03-11 22:34:11 +01:00
parent d0cda9d6c5
commit cab3950762

View File

@ -200,13 +200,10 @@ doesn't interfere).
- kitty: https://sw.kovidgoyal.net/kitty/shell-integration/
- vscode: https://code.visualstudio.com/docs/terminal/shell-integration
To configure bash to mark the start/end of each prompt, set $PROMPT_COMMAND
and $PS1 as follows: >bash
To configure bash to mark the start of each prompt, set $PROMPT_COMMAND: >bash
# Prompt start:
PROMPT_COMMAND='printf "\033]133;A\007"'
# Prompt end:
PS1="$PS1"'\033]133;B\007'
<
*terminal_]]* *terminal_[[*
The |]]| and |[[| motions jump to the next/previous prompts, if your shell