<div dir="auto">thanks for the detailed bug report, ill do my best to test this, this week, with other terminal emulators too.</div><div dir="auto"><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 24 Jun 2025 at 20:55 Sergiy <<a href="mailto:bugzilla_noreply@kde.org">bugzilla_noreply@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><a href="https://bugs.kde.org/show_bug.cgi?id=506124" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=506124</a><br>
<br>
            Bug ID: 506124<br>
           Summary: Konsole fails to display command prompt after some<br>
                    scripts complete<br>
    Classification: Applications<br>
           Product: konsole<br>
      Version First 25.04.2<br>
       Reported In:<br>
          Platform: Arch Linux<br>
                OS: Linux<br>
            Status: REPORTED<br>
          Severity: normal<br>
          Priority: NOR<br>
         Component: general<br>
          Assignee: <a href="mailto:konsole-devel@kde.org" target="_blank">konsole-devel@kde.org</a><br>
          Reporter: <a href="mailto:dwarf.nordar@gmail.com" target="_blank">dwarf.nordar@gmail.com</a><br>
  Target Milestone: ---<br>
<br>
== SUMMARY ==<br>
After a script that produces continuous output to the terminal finishes (e.g.,<br>
using `wget --show-progress` or a simple loop), the Konsole prompt (PS1) is not<br>
rendered automatically. The terminal itself is not frozen: pressing the Enter<br>
key makes the cursor move to a new line, and after that, the prompt may appear.<br>
This indicates a rendering or state issue within Konsole, not a shell or<br>
process hang.<br>
<br>
== STEPS TO REPRODUCE ==<br>
1. Create a simple test script named `test_prompt.sh` with the following<br>
content:<br>
   #!/bin/bash<br>
   echo "Starting long output..."<br>
   for i in {1..50}; do<br>
       echo "Line $i of 50"<br>
       sleep 0.02<br>
   done<br>
   echo "Script finished."<br>
   # The prompt should appear here, but it doesn't.<br>
<br>
2. Make it executable: `chmod +x test_prompt.sh`<br>
3. Run it in a Konsole tab: `./test_prompt.sh`<br>
<br>
== EXPECTED BEHAVIOR ==<br>
The command prompt (e.g., `user@host:~$`) appears immediately on a new line<br>
after the "Script finished." message is printed.<br>
<br>
== ACTUAL BEHAVIOR ==<br>
A blank line with a blinking cursor appears. The prompt is not rendered. If the<br>
user then presses the Enter key, the prompt appears on the next new line. The<br>
issue is 100% reproducible.<br>
<br>
== DEBUGGING STEPS ALREADY TAKEN (IMPORTANT) ==<br>
We have conducted an extensive debugging session and have ruled out common<br>
causes. This is NOT a configuration issue.<br>
<br>
1.  **Shell configuration ruled out:** The issue persists with a completely<br>
empty `~/.bashrc` and a sanitized `/etc/bash.bashrc` (with the window title<br>
setting block commented out).<br>
2.  **It works in a sterile environment:** The command `env -i bash --norc`<br>
followed by running the script works correctly, proving the issue is related to<br>
the environment loaded by a normal interactive shell.<br>
3.  **strace analysis performed:** `strace` logs confirm that the `bash`<br>
process is NOT hung. It successfully writes the prompt string to the terminal<br>
(via the `write()` syscall) and then correctly enters a `pselect6()` state,<br>
waiting for user input. This strongly suggests Konsole receives the command to<br>
draw the prompt but fails to render it.<br>
4.  **Konsole Profile ruled out:** The issue persists even after creating a<br>
new, clean user profile within Konsole.<br>
5.  **`reset` command workaround failed:** Adding the `reset` command to the<br>
end of the test script does NOT solve the problem.<br>
<br>
This appears to be a genuine rendering or state management bug within Konsole<br>
itself.<br>
<br>
== SYSTEM INFORMATION ==<br>
plasmashell 6.4.0<br>
<br>
-- <br>
You are receiving this mail because:<br>
You are the assignee for the bug.</blockquote></div></div>