Re: feature request, shift-enter to inline a newline
From:
Chet Ramey
Subject:
Re: feature request, shift-enter to inline a newline
Date:
Thu, 3 Feb 2022 14:09:54 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1
On 2/3/22 12:40 PM, Alex fxmbsw7 Ratchev wrote:
as title says, pressing shift enter would produce a newline into all
instead of send the cmd away
Since read(2) doesn't produce a different input character when shift is
used to modify enter, it's not generally possible.
If you can identify or specify a unique character your terminal emulator
produces for shift-enter, you can bind that to "\C-V\C-J" (or \C-M,
depending on your needs).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/