nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bracketed pasting nano 4.8


From: Benno Schulenberg
Subject: Re: Bracketed pasting nano 4.8
Date: Fri, 20 Mar 2020 14:34:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Op 19-03-2020 om 09:29 schreef Benno Schulenberg:
> It seems that some terminal emulators, when pasting, will feed the exact 
> contents
> of the clipboard to whatever program is running in the terminal.  That is, if 
> the
> clipboard contains multiple lines (each terminated with a LF character), it 
> will
> feed these linefeeds unchanged to the running program.  This is strange.  When
> the user *types* multiple lines, they don't type ^J at the end of each line, 
> they
> type <Enter>.  And <Enter> is ^M.  So if a terminal emulator wants to paste
> something into a running program, it should simulate the *typing* of the 
> pasted
> text: it should translate LF to CR

To humor the users of crude emulators, nano will now accept ^J as
a synonym of ^M during a bracketed paste.

  https://git.savannah.gnu.org/cgit/nano.git/commit/?id=481529e8

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]