From: Fabian Lindner <MFL01@gmx.de> To: "zsh-workers@zsh.org" <zsh-workers@zsh.org> Subject: Escape sequences are not interpreted by "zle -M" Date: Thu, 16 Jun 2022 21:34:48 +0200 [thread overview] Message-ID: <3B280AA7-EBFB-467C-A3B4-8B990579CDD1@getmailspring.com> (raw) Hello everyone, I noticed a bug (I believe), where escape sequences (for example color codes) do not work as intended when beeing displayed with "zle -M". A minimal working example (with "zsh -f") that showcases what I mean: $ echo $TERM st-256color $ zle-line-init () { zle -M "^[[38;5;1mred" } $ zle -N zle-line-init After that, the string displayed below the prompt is the literal string "\033[38;5;1mred" (without any colors applied). I inserted the escape character via Ctrl+V. I also tested with \033 instead of the escape character, but I get the same result. Running $ echo "^[[38;5;1mred" works as intended and displays the string "red" in the correct color. I am using zsh version 5.9 (x86_64-pc-linux-gnu) on ArchLinux and my terminal is st, but I also tested on gnome-terminal and allacrity with the same result. If someone knows how to fix this, or if this is fixed at any point, please let me know! (Btw. I'm not subscribed to the mailing list, so I would appreciate it, if I could get a direct answer.) Fabian
next reply other threads:[~2022-06-16 19:35 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-16 19:34 Fabian Lindner [this message] 2022-06-19 22:13 ` Bart Schaefer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3B280AA7-EBFB-467C-A3B4-8B990579CDD1@getmailspring.com \ --to=mfl01@gmx.de \ --cc=zsh-workers@zsh.org \ --subject='Re: Escape sequences are not interpreted by "zle -M"' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).