zsh-users
 help / color / mirror / code / Atom feed
* Convert control characters to bindkey/quoted-insert -style escape sequences
@ 2024-01-24 13:35 Marlon Richert
  2024-01-24 13:54 ` Roman Perepelitsa
  2024-01-24 23:21 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Marlon Richert @ 2024-01-24 13:35 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

I know I can convert control characters to $'...' -style escape sequences
using ${(qqqq)...} or ${(q+)...} expansion.

However, how can I convert control characters to bindkey/quoted-insert
-style escape sequences?

For example, I want to convert a newline character to ^M and not $'\n'

Basically, I want the inverse of a ${(g:c:)...} expansion.

[-- Attachment #2: Type: text/html, Size: 955 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-25  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24 13:35 Convert control characters to bindkey/quoted-insert -style escape sequences Marlon Richert
2024-01-24 13:54 ` Roman Perepelitsa
2024-01-25  8:34   ` Marlon Richert
2024-01-24 23:21 ` Bart Schaefer

Code repositories for project(s) associated with this public 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).