NetBSD-Bugs archive

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

Re: misc/53564: tmux: pagination/wordwrap misalingment



The following reply was made to PR misc/53564; it has been noted by GNATS.

From: "Courtney R. Spencer" <cspencer%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: misc/53564: tmux: pagination/wordwrap misalingment
Date: Sat, 1 Sep 2018 22:07:07 -0400

 --00000000000083fe150574d9e279
 Content-Type: text/plain; charset="UTF-8"
 
 On Sat, Sep 1, 2018 at 11:00 AM Leonardo Taccari <leot%netbsd.org@localhost> wrote:
 
 > The following reply was made to PR misc/53564; it has been noted by GNATS.
 >
 > From: Leonardo Taccari <leot%NetBSD.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc:
 > Subject: Re: misc/53564: tmux: pagination/wordwrap misalingment
 > Date: Sat, 01 Sep 2018 16:56:36 +0200
 >
 >  Hello Courtney, =
 >
 >
 >  cspencer%gmail.com@localhost writes:
 >  > >Number:         53564
 >  > >Category:       misc
 >  > >Synopsis:       tmux: pagination/wordwrap misalingment
 >  > >Confidential:   no
 >  > >Severity:       non-critical
 >  > >Priority:       medium
 >  > >Responsible:    misc-bug-people
 >  > >State:          open
 >  > >Class:          sw-bug
 >  > >Submitter-Id:   net
 >  > >Arrival-Date:   Fri Aug 31 18:20:00 +0000 2018
 >  > >Originator:     Courtney Spencer
 >  > >Release:        NetBSD 8.0_RC2
 >  > >Organization:
 >  > >Environment:
 >  > [...]
 >  > >Description:
 >  >         On a default install, regardles of shell or TERM, tmux
 >  > when reading long lines, writes the output to the terminal
 >  > by breaking up then entire string insets of two line breaks with an
 >  > unread, but added line break. =
 >
 >  >
 >  > >How-To-Repeat:
 >  > In 8.x, start a tmux session.
 >  >
 >  > Write a one-line string to the terminal such that the number of =
 >
 >  > characters is greater than
 >  > 2 * $COLUMNS + 1:
 >  >
 >  > For purposes of demonstration, I'm using 480 characters written to an
 >  > 80 column terminal.
 >  >
 >  > jot -s "" -b L 480
 >  >
 >  > Double click to select the output, or click and drag to select.
 >  > When double-clicking, the highlited area will be exactly two lines
 >  > regardless of how long the string is and how much it wraps.
 >  > When highlighting and draging, write the selction to a temp
 >  > file and notice there are multiple lines.  In my example above
 >  > 480 characters becomes 3 lines.
 >
 >  I have tested with tmux-2.4^[0] on NetBSD-current and I can reproduce
 >  the problem you have described... But, good news!, it seems that
 >  it was fixed upstream (fix contained in tmux-2.5) by the following
 >  commit:
 >
 >   <
 > https://github.com/tmux/tmux/commit/d520dae6ac9acf980d48fbc8307ac83a5cee=
 >  2938>
 >
 >  ...and the corresponding diff:
 >
 >   <
 > https://github.com/tmux/tmux/commit/d520dae6ac9acf980d48fbc8307ac83a5cee=
 >  2938.diff>
 >
 >  applies cleanly.
 >
 >  Please let us know if applying the diff fixes the problem!
 >
 >
 >  (Surely this is pretty annoying for copy and paste but I'm not sure
 >  if it's worth to be pulled up to netbsd-8 or not, releng?)
 >
 >
 >  PS: As a workaround, if it is less intrusive, you can also install the
 >      tmux pkgsrc package that should not be affected by this problem.
 >
 >
 >  [0]: AFAIK tmux-2.4 in NetBSD 8.0 should not differ significantly,
 >       except for not using configure.
 >
 >
 Thanks for looking into.
 But tmux 2.4 in 8.0 base and pkgsrc tmux 2.6 exhibit the same behavior
 on my 8.0 system...
 
 This was not the case of base tmux 2.4 in 7.1.1.  I noticed the change in
 behavior
 almost immediately after upgrading with the base tmux.  I've tried building
 pkgsrc tmux 2.6 with system curses and ncurses; I've tried importing 7.1
 screen.terminfo as well before having any info.
 
 Regards,
 Courtney
 
 --00000000000083fe150574d9e279
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Sat=
 , Sep 1, 2018 at 11:00 AM Leonardo Taccari &lt;<a href=3D"mailto:leot@netbs=
 d.org">leot%netbsd.org@localhost</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
 uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
 x">The following reply was made to PR misc/53564; it has been noted by GNAT=
 S.<br>
 <br>
 From: Leonardo Taccari &lt;leot%NetBSD.org@localhost&gt;<br>
 To: gnats-bugs%NetBSD.org@localhost<br>
 Cc: <br>
 Subject: Re: misc/53564: tmux: pagination/wordwrap misalingment<br>
 Date: Sat, 01 Sep 2018 16:56:36 +0200<br>
 <br>
 =C2=A0Hello Courtney, =3D<br>
 <br>
 <br>
 =C2=A0<a href=3D"mailto:cspencer%gmail.com@localhost"; target=3D"_blank">cspencer@gmai=
 l.com</a> writes:<br>
 =C2=A0&gt; &gt;Number:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A053564<br>
 =C2=A0&gt; &gt;Category:=C2=A0 =C2=A0 =C2=A0 =C2=A0misc<br>
 =C2=A0&gt; &gt;Synopsis:=C2=A0 =C2=A0 =C2=A0 =C2=A0tmux: pagination/wordwra=
 p misalingment<br>
 =C2=A0&gt; &gt;Confidential:=C2=A0 =C2=A0no<br>
 =C2=A0&gt; &gt;Severity:=C2=A0 =C2=A0 =C2=A0 =C2=A0non-critical<br>
 =C2=A0&gt; &gt;Priority:=C2=A0 =C2=A0 =C2=A0 =C2=A0medium<br>
 =C2=A0&gt; &gt;Responsible:=C2=A0 =C2=A0 misc-bug-people<br>
 =C2=A0&gt; &gt;State:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 open<br>
 =C2=A0&gt; &gt;Class:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sw-bug<br>
 =C2=A0&gt; &gt;Submitter-Id:=C2=A0 =C2=A0net<br>
 =C2=A0&gt; &gt;Arrival-Date:=C2=A0 =C2=A0Fri Aug 31 18:20:00 +0000 2018<br>
 =C2=A0&gt; &gt;Originator:=C2=A0 =C2=A0 =C2=A0Courtney Spencer<br>
 =C2=A0&gt; &gt;Release:=C2=A0 =C2=A0 =C2=A0 =C2=A0 NetBSD 8.0_RC2<br>
 =C2=A0&gt; &gt;Organization:<br>
 =C2=A0&gt; &gt;Environment:<br>
 =C2=A0&gt; [...]<br>
 =C2=A0&gt; &gt;Description:<br>
 =C2=A0&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0On a default install, regardles=
  of shell or TERM, tmux<br>
 =C2=A0&gt; when reading long lines, writes the output to the terminal<br>
 =C2=A0&gt; by breaking up then entire string insets of two line breaks with=
  an<br>
 =C2=A0&gt; unread, but added line break. =3D<br>
 <br>
 =C2=A0&gt;<br>
 =C2=A0&gt; &gt;How-To-Repeat:<br>
 =C2=A0&gt; In 8.x, start a tmux session.<br>
 =C2=A0&gt;<br>
 =C2=A0&gt; Write a one-line string to the terminal such that the number of =
 =3D<br>
 <br>
 =C2=A0&gt; characters is greater than<br>
 =C2=A0&gt; 2 * $COLUMNS + 1:<br>
 =C2=A0&gt;<br>
 =C2=A0&gt; For purposes of demonstration, I&#39;m using 480 characters writ=
 ten to an<br>
 =C2=A0&gt; 80 column terminal.<br>
 =C2=A0&gt;<br>
 =C2=A0&gt; jot -s &quot;&quot; -b L 480<br>
 =C2=A0&gt;<br>
 =C2=A0&gt; Double click to select the output, or click and drag to select.<=
 br>
 =C2=A0&gt; When double-clicking, the highlited area will be exactly two lin=
 es<br>
 =C2=A0&gt; regardless of how long the string is and how much it wraps.<br>
 =C2=A0&gt; When highlighting and draging, write the selction to a temp<br>
 =C2=A0&gt; file and notice there are multiple lines.=C2=A0 In my example ab=
 ove<br>
 =C2=A0&gt; 480 characters becomes 3 lines.<br>
 <br>
 =C2=A0I have tested with tmux-2.4^[0] on NetBSD-current and I can reproduce=
 <br>
 =C2=A0the problem you have described... But, good news!, it seems that<br>
 =C2=A0it was fixed upstream (fix contained in tmux-2.5) by the following<br=
 >
 =C2=A0commit:<br>
 <br>
 =C2=A0 &lt;<a href=3D"https://github.com/tmux/tmux/commit/d520dae6ac9acf980=
 d48fbc8307ac83a5cee=3D" rel=3D"noreferrer" target=3D"_blank">https://github=
 .com/tmux/tmux/commit/d520dae6ac9acf980d48fbc8307ac83a5cee=3D</a><br>
 =C2=A02938&gt;<br>
 <br>
 =C2=A0...and the corresponding diff:<br>
 <br>
 =C2=A0 &lt;<a href=3D"https://github.com/tmux/tmux/commit/d520dae6ac9acf980=
 d48fbc8307ac83a5cee=3D" rel=3D"noreferrer" target=3D"_blank">https://github=
 .com/tmux/tmux/commit/d520dae6ac9acf980d48fbc8307ac83a5cee=3D</a><br>
 =C2=A02938.diff&gt;<br>
 <br>
 =C2=A0applies cleanly.<br>
 <br>
 =C2=A0Please let us know if applying the diff fixes the problem!<br>
 <br>
 <br>
 =C2=A0(Surely this is pretty annoying for copy and paste but I&#39;m not su=
 re<br>
 =C2=A0if it&#39;s worth to be pulled up to netbsd-8 or not, releng?)<br>
 <br>
 <br>
 =C2=A0PS: As a workaround, if it is less intrusive, you can also install th=
 e<br>
 =C2=A0 =C2=A0 =C2=A0tmux pkgsrc package that should not be affected by this=
  problem.<br>
 <br>
 <br>
 =C2=A0[0]: AFAIK tmux-2.4 in NetBSD 8.0 should not differ significantly,<br=
 >
 =C2=A0 =C2=A0 =C2=A0 except for not using configure.<br>
 <br></blockquote><div><br></div><div>Thanks for looking into.</div><div>But=
  tmux 2.4 in 8.0 base and pkgsrc tmux 2.6 exhibit the same behavior</div><d=
 iv>on my 8.0 system...</div><div><br></div><div>This was not the case of ba=
 se tmux 2.4 in 7.1.1.=C2=A0 I noticed the change in behavior<br></div><div>=
 almost immediately after upgrading with the base tmux.=C2=A0 I&#39;ve tried=
  building <br></div><div>pkgsrc tmux 2.6 with system curses and ncurses; I&=
 #39;ve tried importing 7.1 <br></div><div>screen.terminfo as well before ha=
 ving any info.</div><div><br></div><div>Regards,</div><div>Courtney<br></di=
 v></div></div>
 
 --00000000000083fe150574d9e279--
 



Home | Main Index | Thread Index | Old Index