osc7: initial patch implementation (#154)

* osc7: initial patch implementation

Closes #153

* osc7: avoid redundant use of realpath()

* osc7: fix styling

* Changing position of the OSC7_PATCH toggle in patches.def.h

---------

Co-authored-by: Bakkeby <bakkeby@gmail.com>
This commit is contained in:
Utkarsh Verma 2024-10-15 09:54:45 +02:00 committed by GitHub
parent 3f1a5ed034
commit c4c5113fbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 136 additions and 11 deletions

View file

@ -301,6 +301,14 @@
*/
#define OPENURLONCLICK_PATCH 0
/* This patch allows st to fetch the current working directory through the OSC 7 escape
* sequence emitted by shells. Must be used with newterm patch.
*
* https://codeberg.org/dnkl/foot/wiki#spawning-new-terminal-instances-in-the-current-working-directory
* https://github.com/veltza/st-sx/commit/817865c2c6ed905af8849580e58bdcf399216fbd
*/
#define OSC7_PATCH 0
/* This patch allows jumping between prompts by utilizing the OSC 133 escape sequence
* emitted by shells. Must be used with either reflow or scrollback patch.
*