Bug 250212 - The command prompt isn't displayed after using "Clear Scrollback & reset"
Summary: The command prompt isn't displayed after using "Clear Scrollback & reset"
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.5.999
Platform: Mandriva RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Kurt Hindenburg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 22:48 UTC by Ahmad Samir
Modified: 2014-09-22 20:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.3


Attachments
Patch to force prompt to be redisplayed (1.18 KB, patch)
2011-02-28 01:20 UTC, Kurt Hindenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Samir 2010-09-04 22:48:58 UTC
When "Clear Scrollback & reset" is used in konsole the output is cleared but the command prompt isn't displayed as expected, I have to press Enter to see the command prompt.

This is similar to bug 149562 ...
Comment 1 Christoph Feck 2010-09-05 02:45:07 UTC
How should "bash" now that it should redisplay the prompt when the terminal is reset? xterm cannot do this either.
Comment 2 Ahmad Samir 2010-09-05 03:29:40 UTC
No idea :)

From what I gathered from comment 1 in bug 149562 it was more of a trick/hack to make that work.
Comment 3 Ahmad Samir 2010-11-23 11:59:36 UTC
Has a decision been made about this bug? (even close as invalid/wontfix if there's no intention to fix).

Thanks.
Comment 4 Kurt Hindenburg 2011-02-26 23:54:55 UTC
A recent commit makes this work under bash again.  The 'refresh' is a hack as comment #2 suggests.
Comment 5 Kurt Hindenburg 2011-02-28 01:20:03 UTC
Created attachment 57562 [details]
Patch to force prompt to be redisplayed

Any opinions about this code?  basically sends SIGINT or ^C to the shell after clearing the screen.
Comment 6 Ahmad Samir 2011-02-28 01:45:19 UTC
This bug is fixed already AFAICS, with the fix in bug 242110.

(Sorry for not posting earlier).
Comment 7 Kurt Hindenburg 2011-02-28 02:16:30 UTC
Not really - it works w/ bash now - but the old code is hackish as it resizes the window - I would prefer something else that works for all shells and clears the command line.
Comment 8 Ahmad Samir 2011-02-28 03:21:39 UTC
OK.

I only use bash, so I don't know how it is with other shells. (Thanks for the fix anyway :)).
Comment 9 Jekyll Wu 2012-04-09 11:50:12 UTC
Git commit ccfc3f859c5695cc08895570efd0831db0d3b9b0 by Jekyll Wu.
Committed on 09/04/2012 at 13:09.
Pushed by jekyllwu into branch 'master'.

Introduce small delay to avoid updating Pty size too quickly

Some terminal application does not update its display when Pty size
changes quickly in a row.  Zsh seems a typical example.

Thanks to Franz Fellner<alpine.art.de@googlemail.com> for the research
and solution.
Related: bug 164099
FIXED-IN: 4.8.3

M  +2    -0    src/Session.cpp

http://commits.kde.org/konsole/ccfc3f859c5695cc08895570efd0831db0d3b9b0
Comment 10 Jekyll Wu 2012-04-09 11:53:26 UTC
Git commit aea2091d1cc226a155331fa3a1f176ff005fc690 by Jekyll Wu.
Committed on 09/04/2012 at 13:09.
Pushed by jekyllwu into branch 'KDE/4.8'.

Introduce small delay to avoid updating Pty size too quickly

Some terminal application does not update its display when Pty size
changes quickly in a row.  Zsh seems a typical example.

Thanks to Franz Fellner<alpine.art.de@googlemail.com> for the research
and solution.
Related: bug 164099
FIXED-IN: 4.8.3
(cherry picked from commit ccfc3f859c5695cc08895570efd0831db0d3b9b0)

M  +2    -0    src/Session.cpp

http://commits.kde.org/konsole/aea2091d1cc226a155331fa3a1f176ff005fc690
Comment 11 Matt Hoover 2014-09-22 20:36:11 UTC
Today I upgraded form 4.8.5 (?) where this always worked fine for me, to 4.13.3, where I encountered the problem for the first time.  Found this old bug as the most relevant place to discuss.

When I "clear scrollback and reset," the terminal goes completely blank and hangs there until I enter any input, at which point the prompt appears with my input.  Any ideas?
Comment 12 Matt Hoover 2014-09-22 20:44:50 UTC
Found bug 335047 where this issue has been (re)reported, so please disregard my comment above, sorry for the noise.