Bug 409994 - better (link) support for TUI applications
Summary: better (link) support for TUI applications
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (other bugs)
Version First Reported In: 18.04.0
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-19 11:52 UTC by Oswald Buddenhagen
Modified: 2025-07-26 21:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oswald Buddenhagen 2019-07-19 11:52:34 UTC
applications based on ncurses, slang, or other text ui toolkits take control of newlines themselves, i.e., they hard-wrap text. this has the effect that links which span multiple lines are not recognized as such.

my suggestion would be to re-join lines heuristically: if the "word" fills the whole line and the next line starts with another word character, join the two - this is relatively safe and handles properly wrapped flowed text as drawn by a mailer like mutt.


while the mechanism is different, this obviously also affects selecting/copying from the terminal.

there is another incarnation of the latter problem: an ssh public key copied from, say, mcview will contain newlines, which is often a nuisance. the problem here is that the text is _not_ properly flowed, but hard-wrapped, and contains multiple words to start with, so the above heuristic would not work.

the distorted copying is less troublesome, as the "paste destination" typically offers the possibility to re-join the lines (or will even do it automatically), so i'm mostly mentioning it only for context, but you may still want to create a spin-off task for it.
Comment 1 Oswald Buddenhagen 2021-02-20 18:20:27 UTC
btw, #379294 provides a better solution than smart heuristics, but i think we will wait a really long time until all TUI programs will support it - not sure if even one of the toolkits supports this by now, given that this doesn't fit the "the screen is a matrix of cells" concept too well.
Comment 2 Oswald Buddenhagen 2021-02-20 18:27:33 UTC
(also, some cases simply can't be expected to be covered by the OSC8 support - an url that appears in a text file that is being edited most likely won't be recognized and marked as such by the editor.)
Comment 3 Marcus 2025-07-26 21:20:40 UTC
This has been bothering me for years! I'm an avid IRC user (weechat specifically) and clicking multiline urls simply does not work there. Only other terminal I've got it working as expected, is Kitty. However, there are several reasons why I'd rather stick with Konsole over Kitty.

If this issue has been successfully resolved in Kitty, why not in Konsole?