[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can we decode CSI u escape sequences?
From: |
Johannes Altmanninger |
Subject: |
Re: Can we decode CSI u escape sequences? |
Date: |
Wed, 20 Apr 2022 17:10:33 +0200 |
On Wed, Apr 20, 2022 at 10:58:45AM -0400, Chet Ramey wrote:
> On 4/18/22 3:35 PM, Johannes Altmanninger wrote:
> > CSI u escape sequences allow to use modifiers like control/shift/alt with
> > any
> > key (for example it allows to map Control-2 and Control-Space
> > independently).
> > Today, users can bind them using ugly sequences ("\033[50;5u").
> > I think it would be nice if readline could decode these sequences (so we
> > can say "Control-2").
>
> I think I'll wait until more terminal emulators support this.
Fair enough. For the record, xterm emits at least some CSI u sequences with
this configuration
xrdb << EOF
XTerm.vt100.formatOtherKeys: 1
XTerm.vt100.modifyOtherKeys: 1
EOF
Sadly, having a shell enable CSI u is a bad idea because child processes
probably can't handle them..