-
Notifications
You must be signed in to change notification settings - Fork 11
Q&A
David B. Lamkins edited this page Dec 14, 2020
·
1 revision
Create or edit a ~/.inputrc
file. See $ info readline
; search for "Readline Init File".
Put them in a $if xs
... $endif
block in your ~/.inputrc
file. For example:
$if xs
C-g: " >[2=1]|less -FX"
$endif
I'm using a prompt which contains UTF-8 multibyte characters; the input gets garbled when I attempt to edit. How do I fix this?
This happens when xs
is not running in a UTF-8 locale. Set a UTF-8 locale in your ~/.xsrc
file:
LC_ALL = en_US.UTF-8
LANG = $LC_ALL
Use ANSI escape sequences. Xs
knows how to hide escape sequences and control characters from readline(3).