Bug 470111

Summary: Bookmarks in Konsole "Broken" with Pasting Artifacts
Product: [Applications] konsole Reporter: John <kdelovaa>
Component: bookmarkAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: ninjalj
Priority: NOR    
Version: 23.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Broken Bookmarks in Konsole (Artifacts)

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