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 23:44:42
Message-Id: 8997990d-b74e-af3e-bb65-735aa44caeb8@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] Re: line wrap over in xterm/konsole by Jorge Almeida
1 On 6/21/19 5:03 PM, Jorge Almeida wrote:
2 > ## equery uses x11-terms/xterm
3 > [ Legend : U - final flag setting for installation]
4 > [ : I - package is installed with flag ]
5 > [ Colors : set, unset ]
6 > * Found these USE flags for x11-terms/xterm-337:
7 > U I
8 > - - Xaw3d : Add support for the 3d athena widget set
9 > + + openpty : Use openpty() in preference to posix_openpt()
10 > - - toolbar : Enable the xterm toolbar to be built
11 > + + truetype : Add support for FreeType and/or FreeType2 fonts
12 > + + unicode : Add support for Unicode
13 > - - xinerama : Add support for querying multi-monitor screen geometry through
14 > the Xinerama API
15 > ~
16
17 That's what I expected.
18
19 > Ah, no, it doesn't. I thought Mick's problem was with the shell.
20
21 Ah.
22
23 > Shrinking the window truncates the visible lines. Restoring the size
24 > doesn't restore the truncated contents.
25
26 Agreed.
27
28 > This was expected. After all, the output of "cat foo" is not processed
29 > through readline.
30
31 I don't think that readline has anything to do with this.
32
33 > Maybe I misunderstood the OP's problem?
34
35 Ah.
36
37 > (But then, how can rxvt behave differently?)
38
39 I don't know about rxvt per say.
40
41 But I thought there was a common library (libterm?) used by a number of
42 terminal emulators that actually saved the output to a temporary file.
43 That way they could re-display the output if (when) the window size changed.
44
45 After emerging and testing rxvt, yes, it will rewrap the line to the new
46 window width. It seems as if it saves the output as discreet lines and
47 re-wraps them individually based on the terminal width. So, the output
48 of an ls -l in a 132 character window, causes each line to be re-wrapped
49 (as below) when reducing the window width.
50
51 This 40 character wide…
52
53 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
54 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
55 cccccccccccccccccccccccccccccccccccccccc
56 dddddddddddddddddddddddddddddddddddddddd
57
58 …becomes this 30 character wide.
59
60 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
61 aaaaaaaaaa
62 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
63 bbbbbbbbbb
64 cccccccccccccccccccccccccccccc
65 cccccccccc
66 dddddddddddddddddddddddddddddd
67 dddddddddd

Replies

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