Summary: | tldr++ output reprints | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | tjquillan |
Component: | emulation | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mglb, nate, ninjalj, tcanabrava |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
URL: | https://github.com/isacikgoz/tldr | ||
Latest Commit: | 66c830484c3e042284b23114ab51f99a706cea9e | Version Fixed In: | v20.08.0 |
Attachments: |
konsole vs vte
attachment-24069-0.html |
Description
tjquillan
2019-05-17 05:01:18 UTC
Tested against xterm and vte, both have the correct behavior, konsole fails. @kurt, I have no idea what to do here, it's completely out of my area of expertise, can you point me where to look? I'm not clear I see a difference between Konsole and gnome-terminal. Created attachment 120933 [details]
konsole vs vte
Easy to see the difference. Install tldr++ (not tldr) and run it with an argument, for instance, zip. then just press arrow up / down and you will see the incorrect behavior. In konsole there are newlines, in vte / xterm the lines are correctly overwriten.
What Konosle version are you using? Can you clarify the difference between tldr and tldr++ - I only see tldr in the github listed. I would guess they are using an xterm/term command to clear portions of the screen which Konsole is not handling correctly. Created attachment 120947 [details] attachment-24069-0.html Im using master Kurt. As I compile daily :) tldr is the "main" implementation, tldr++ is another approach written in go: https://github.com/isacikgoz/tldr Em seg, 17 de jun de 2019 às 15:42, Kurt Hindenburg < bugzilla_noreply@kde.org> escreveu: > https://bugs.kde.org/show_bug.cgi?id=407627 > > --- Comment #4 from Kurt Hindenburg <kurt.hindenburg@gmail.com> --- > What Konosle version are you using? Can you clarify the difference > between > tldr and tldr++ - I only see tldr in the github listed. > > I would guess they are using an xterm/term command to clear portions of the > screen which Konsole is not handling correctly. > > -- > You are receiving this mail because: > You are the assignee for the bug. Some sequences for cursor movement from `man console_codes` do not work in Konsole. I remember save/restore cursor position (e[7, e[8) being one of them. The problem looks like an effect of absence of these sequences. The cursor should be moved to message's origin, a new message should be printed, overwriting the old one. Cursor is not moved, so new message is printed where the cursor was (at the end of previous message). Fixed a couple of years ago by adding support for CPL (Cursor to Previous Line). Old versions of tldr++ (e.g. 72ad2f55b663667e8506b92e647c166cf77b60c0) used a bunch of CPL + EL (Erase Line) to clear the portion of the display that tldr++ uses on each UP/DOWN key press. |