Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-07 Thread Thomas Dickey
On Wed, Dec 05, 2018 at 02:44:43PM +0100, Vincent Lefevre wrote: > On 2018-12-05 14:12:32 +0100, Vincent Lefevre wrote: > > I suspect a bug in doSelectionFormat() in button.c that makes xterm > > think that there was a bracketed paste, whose consequence is to > > generate the "ESC [ 2 0 1 ~ .". >

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-05 14:12:32 +0100, Vincent Lefevre wrote: > I suspect a bug in doSelectionFormat() in button.c that makes xterm > think that there was a bracketed paste, whose consequence is to > generate the "ESC [ 2 0 1 ~ .". > > If I remove > > #if OPT_READLINE > mydata->paste_brackets =

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-05 13:33:41 +0100, Vincent Lefevre wrote: > Note also that for a bracketed paste, > > > https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Paste-Mode > > says: > > When bracketed paste mode is set, the program will receive: > ESC [ 2 0 0 ~ , > followed

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-05 11:30:03 +0100, Vincent Lefevre wrote: > On 2018-12-05 05:03:46 -0500, Thomas Dickey wrote: > > On Wed, Dec 05, 2018 at 10:13:35AM +0100, Vincent Lefevre wrote: > > > According to strace, it is xterm: > > > > sure: xterm replies to the application for bracketed paste. > > You mean

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-05 05:03:46 -0500, Thomas Dickey wrote: > On Wed, Dec 05, 2018 at 10:13:35AM +0100, Vincent Lefevre wrote: > > According to strace, it is xterm: > > sure: xterm replies to the application for bracketed paste. You mean that it is zsh that does the paste? Why isn't there any system

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Thomas Dickey
On Wed, Dec 05, 2018 at 09:58:21AM +0100, Vincent Lefevre wrote: > On 2018-12-04 21:50:47 -0500, Thomas Dickey wrote: > > That looks as expected, if you've got two different things writing to > > the terminal at the same time: > > > >

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Thomas Dickey
On Wed, Dec 05, 2018 at 10:13:35AM +0100, Vincent Lefevre wrote: > On 2018-12-05 09:58:21 +0100, Vincent Lefevre wrote: > > On 2018-12-04 21:50:47 -0500, Thomas Dickey wrote: > > > That looks as expected, if you've got two different things writing to > > > the terminal at the same time: > > > > >

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-05 09:58:21 +0100, Vincent Lefevre wrote: > On 2018-12-04 21:50:47 -0500, Thomas Dickey wrote: > > That looks as expected, if you've got two different things writing to > > the terminal at the same time: > > > >

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-05 Thread Vincent Lefevre
On 2018-12-04 21:50:47 -0500, Thomas Dickey wrote: > That looks as expected, if you've got two different things writing to > the terminal at the same time: > > https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Paste-Mode So, perhaps I can see something with zsh (without Ctrl-V

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-12-04 Thread Thomas Dickey
On Tue, Nov 27, 2018 at 09:56:15AM +0100, Vincent Lefevre wrote: > On 2018-11-26 20:38:37 -0500, Thomas Dickey wrote: > > On Sun, Nov 25, 2018 at 12:08:03AM +0100, Vincent Lefevre wrote: > > > With zsh, one can reproduce the issue with: > > > > > > $ xterm -e zsh -f > > > > If you added a "-l"

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-11-27 Thread Vincent Lefevre
On 2018-11-26 20:38:37 -0500, Thomas Dickey wrote: > On Sun, Nov 25, 2018 at 12:08:03AM +0100, Vincent Lefevre wrote: > > With zsh, one can reproduce the issue with: > > > > $ xterm -e zsh -f > > If you added a "-l" option, that would turn on xterm's logging feature > > xterm -l -e zsh -f

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-11-26 Thread Thomas Dickey
On Sun, Nov 25, 2018 at 12:08:03AM +0100, Vincent Lefevre wrote: > On 2018-11-21 19:02:33 -0500, Thomas Dickey wrote: > > I don't see how this could happen unless you combined the action with > > some pasting (such as bracketed-paste). > > I paste nothing. > > > xterm's formatting of the string

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-11-24 Thread Vincent Lefevre
On 2018-11-21 19:02:33 -0500, Thomas Dickey wrote: > I don't see how this could happen unless you combined the action with > some pasting (such as bracketed-paste). I paste nothing. > xterm's formatting of the string is shell-agnostic, and the exec'd > "browser" command would only depend on what

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-11-21 Thread Thomas Dickey
On Thu, Nov 08, 2018 at 04:51:28PM +0100, Vincent Lefevre wrote: > Package: xterm > Version: 337-1 > Severity: normal > > In my XTerm configuration, I have: > > *VT100*translations:#override \n\ > Meta: exec-formatted("browser %s", PRIMARY) > > The problem is that

Bug#913237: xterm: exec-formatted yields a tilde character in zsh and emacs

2018-11-08 Thread Vincent Lefevre
Package: xterm Version: 337-1 Severity: normal In my XTerm configuration, I have: *VT100*translations:#override \n\ Meta: exec-formatted("browser %s", PRIMARY) The problem is that when exec-formatted is invoked from zsh or emacs (when run in xterm, e.g. with "emacs