runtime(doc): get rid of the titlestring hack for terminal-api
Commit:
https://github.com/vim/vim/commit/14e8208d8432df86828830b3798553f99bedb333
Author: Christian Brabandt <[email protected]>
Date: Sat Feb 22 13:35:15 2025 +0100
runtime(doc): get rid of the titlestring hack for terminal-api
fixes: https://github.com/vim/vim/issues/16656
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 53e2dcd08..1d502abc9 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -1,4 +1,4 @@
-*terminal.txt* For Vim version 9.1. Last change: 2025 Feb 13
+*terminal.txt* For Vim version 9.1. Last change: 2025 Feb 22
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1092,11 +1092,11 @@ Currently supported commands:
Example in JSON: >
["drop", "path/file.txt", {"ff": "dos"}]
-A trick to have Vim send this escape sequence: >
- exe "set t_ts=\<Esc>]51; t_fs=\x07"
- let &titlestring = '["call","Tapi_TryThis",["hello",123]]'
- redraw
- set t_ts& t_fs&
+You can use |echoraw()| to make Vim send this escape sequence: >
+ call echoraw("\<ESC>]51;[\"call\", \"Tapi_TryThis\", [\"hello\",
123]]\x07")
+ call echoraw("\<Esc>]51;[\"drop\", \"README.md\"]\x07")
+Note: JSON requires double quotes around string values, hence those have to be
+escaped.
Rationale: Why not allow for any command or expression? Because that might
create a security problem.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1tlosS-006Nfq-6M%40256bit.org.