Bug 470111 - Bookmarks in Konsole "Broken" with Pasting Artifacts
Summary: Bookmarks in Konsole "Broken" with Pasting Artifacts
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: bookmark (show other bugs)
Version: 23.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-22 08:36 UTC by John
Modified: 2023-06-01 00:49 UTC (History)
1 user (show)

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


Attachments
Broken Bookmarks in Konsole (Artifacts) (22.24 KB, image/avif)
2023-05-22 08:36 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2023-05-22 08:36:05 UTC
Created attachment 159180 [details]
Broken Bookmarks in Konsole (Artifacts)

SUMMARY
***
While clicking a bookmark Konsole adds artifacts and creates additional empty line below before cd-ing into the bookmarked folder. The added artifacts are "^C" and one empty console line without "$". See attached screenshot
***


STEPS TO REPRODUCE
1. Bookmark a folder in konsole
2. Click the Bookmark


OBSERVED RESULT
See attached photo

EXPECTED RESULT
Fix artifacts in konsole bookmarking

Sysinfo/kinfo:
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
[I will add another bug about the bookmarks placement.Couldn't find them initially. And those deep menu submenu reclicks. People using Konsole don't like menu of a submenu. They use keyboard!]
Comment 1 ninjalj 2023-06-01 00:49:17 UTC
Konsole needs to discard the current command line in case it's not empty, so it can then send the cd command to the shell. The way it does this is by sending an ASCII 03 character to the pseudo-terminal, which typically makes the tty line discipline generate and send an INT signal to the shell, which then discards the current command line. Some shells may display ^C while doing this (others don't).

This was added as requested in https://bugs.kde.org/show_bug.cgi?id=46233