[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange problem when pasting text into vile
From: |
Thomas Dickey |
Subject: |
Re: Strange problem when pasting text into vile |
Date: |
Sun, 9 Feb 2025 05:11:09 -0500 |
On Sun, Feb 09, 2025 at 07:44:21AM +0000, Chris Green wrote:
> On Sat, Feb 08, 2025 at 04:59:51PM -0500, Paul Fox wrote:
> > brendan wrote:
> > > I've not had problems with bracketed-paste myself, zsh in rxvt-unicode
> > > with vile has worked fine for me: I get bracketed paste at the
> > > command-line (pastes show up in reverse video, and newlines are not
> > > interpreted until you actually hit enter), and vile doesn't get sent
> > the
> > > escape characters. vile in xterm also seems fine.
> >
> > Thank you for that. If I slowly, patiently, and without anger :-)
> > perform the same experiment with bash (first enabling bracketed paste
> > in .inputrc, where it's usually disabled), then all of that works fine
> > for me, as well, and just as you describe.
> >
> > I hadn't previously understood that the shell would only enable b-p
> > while at the command prompt. That makes perfect sense, but the
> > descriptions of the feature always leave out that detail.
That's because the developers who copy the feature are generally clueless
about the impact of using it.
> I was the original question asker in this long thread. All the more
> recent discussion has, I think, explained to me why it just happens
> sometimes.
>
> I have turned off bracketed paste on my systems by putting:-
>
> set enable-bracketed-paste off
>
> in a custom .inputrc file. Thus the problems with vile mostly don't
> occur.
>
> However I **haven't** turned off bracketed paste for root so I think
> that's when I get bitten, having logged in to root to do somwthing and
> then back out again.
agreed - perhaps adding the map that Paul and Brendan came up with to
vileinit.rc will "fix" the problem (for vile).
Interestingly enough, no one's reported this as an issue with ncurses
(aside from the usual adding-it-to-terminfo-is-the-fix reports)
> I had been fixing the problem, when it occurred, by simply doing
> 'reset' in the terminal window. I now think I may turn bracketed past
> off system wide, it's nothing but a nuisance!
>
> --
> Chris Green
>
>
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature