Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: line wrap over in xterm/konsole
Date: Fri, 21 Jun 2019 19:37:05
Message-Id: 1ccec821-7274-9243-4a84-5753dd8b8c9b@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] Re: line wrap over in xterm/konsole by Mick
1 On 6/21/19 12:03 PM, Mick wrote:
2 > I seem to have this enabled, as far as the GUI shows, along with reverse
3 > wraparound
4
5 If it's enabled (checked) in XTerm's menu, then the feature is enabled.
6
7 > not sure what the reverse wraparound does.
8
9 "reverse wraparound" is when you backspace off the left side of one line
10 and the cursor goes to the far right of the line above.
11
12 > However, lines do not wrap around when I resize the xterm window. :(
13
14 I've never seen this work inside of XTerm.
15
16 I /have/ seen screen (running in XTerm) reflow the text when the window
17 is resized. But that is /screen/ doing it, not XTerm. And by doing it,
18 it's creating new data for XTerm to display.
19
20 > Well, when I anything, I tried shrinking the window width and when
21 > it became narrower than my bash prompt then the prompt only started
22 > wrapping around!
23
24 That's the shell reacting to the new terminal window width. (Much like
25 screen above.)
26
27 > The rest of the content (I had just run the 'ls' command) would not change
28 > from its originally displayed line width.
29
30 XTerm (and many other consoles) only display the output as it was given
31 to them. They don't change the output when the window changes. So if
32 they are given 80 characters of text on one line and 35 on the next
33 line, XTerm (et al.) display those two lines of text, even on a wider
34 window.
35
36 XTerm is not aware (cognizant of the fact) that the 80 characters and
37 the 35 characters are related to each other.
38
39 If you resize the window smaller, XTerm drops the characters between the
40 new width and the old width that it had. It no longer has them to
41 display when you widen the window back out.
42
43 > These are the flags I have installed x11-terms/xterm-337 with:
44 >
45 > openpty truetype unicode -Xaw3d -toolbar -xinerama
46 >
47 > The same problem applies to other xterm based terminals, on various
48 > installations of mine, but as I mentioned rxvt works as I expect/prefer. :-/
49
50 I am not, and have not, been aware of an XTerm option to reflow the text
51 when widening (or narrowing) the window.

Replies

Subject Author
Re: [gentoo-user] Re: line wrap over in xterm/konsole Jorge Almeida <jjalmeida@×××××.com>