summaryrefslogtreecommitdiff
path: root/Xresources
diff options
context:
space:
mode:
authorAdam Price <komidore64@gmail.com>2023-02-07 19:54:29 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-08 00:49:12 +0200
commit9b61c72d8d171ddb1dec59f4cbf728766d2cfc40 (patch)
treef2c5473daa45e6f21eca817ce92c4cd1ef7461cc /Xresources
parentfd53c918d2e070b96a83c347ffefcf6842c3124f (diff)
Add support for DSR response "OK" escape sequence
"VT100 defines an escape sequence [1] called Device Status Report (DSR). When the DSR sequence received is `csi 5n`, an "OK" response `csi 0n` is returned. This patch adds that "OK" response. I encountered this missing sequence when I noticed that fzf [2] would clobber my prompt whenever completing a find. To test that ST doesn't currently respond to `csi 5n`, use fzf's shell extension in ST's repo to complete the path for a file. my-fancy-prompt $ vim **<tab> <select a file> st.c Select a file with <enter>, and notice that fzf clobbers some or all of your prompt. After applying this patch, do the same test as above and notice that fzf has no longer clobbered your prompt by placing the file name in the correct position in your command. my-fancy-prompt $ vim **<tab> <select a file> my-fancy prompt $ vim st.c Thank you for considering my first patch submission. [1] https://www.xfree86.org/current/ctlseqs.html#VT100%20Mode [2] https://github.com/junegunn/fzf " Patch slightly adapted with input from the mailinglist,
Diffstat (limited to 'Xresources')
0 files changed, 0 insertions, 0 deletions