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!]
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