Skip to content

Commit f7dd9a2

Browse files
JanWielemakerclaude
andcommitted
ADDED: OSC 133 semantic prompt marks
Updates libedit and xpce. The commandline editor marks its prompts and the line it reads with the FinalTerm OSC 133 sequences, and the Epilog terminal reads them: it now knows when there is a line being edited and where it starts, rather than deducing it from bracketed paste. That gives click-to-move-the-caret back to vi mode, and terminals with shell integration (iTerm2, kitty, WezTerm, VS Code) get prompt navigation over a swipl session for free. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T13zyETRgTwZhjk383aj5n
1 parent b66ecc1 commit f7dd9a2

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

man/threads.plx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,11 @@ The Epilog terminal:
14561456
location using OSC~8 terminal embedded URLs. Control-click opens
14571457
the built-in editor (edit/1) or an editor of the user's choice.
14581458
Clickable links are also supported for help/1 output.
1459+
\item Moves the caret to a click in the line being edited. The
1460+
terminal knows which line that is because the commandline editor
1461+
marks its prompts using OSC~133 \jargon{semantic prompt} sequences;
1462+
a shell or other program started in the window that does the same
1463+
gets the same service.
14591464
\item Uses, as does \program{swipl}, a modified version of libedit
14601465
for commandline editing. The same commandline editor is used on all
14611466
platforms that support XPCE (Windows, macOS, Linux and other POSIX

packages/libedit

0 commit comments

Comments
 (0)