Red Hat Bugzilla – Bug 977561
'top' clears screen on exit.
Last modified: 2016-01-31 20:58:37 EST
In Fedora 18, the latest output from 'top' remained on screen after you quit. This was often useful.
In Fedora 19, it gratuitously clears the screen on exit.
This is caused by inevitable design changes made upstream and it isn't easily possible to return to the previous behaviour since the current behaviour is already a result of compromise.
I understand it isn't comfortable to change your habits, but if you need to copy'n'paste the information displayed by top, then stop the refresh instead of quitting the application and then copy the content to clipboard/text editor. It may take you a while to re-learn that, but I hope you won't call us different nicknames while doing so.
I don't close bugs as WONTFIX often, but as there's only a very small chance we can achieve the previous behaviour, I don't see a reason for keeping this report open.
If you have any objections or any strong reason why the previous behaviour needs to be changed back, then let me know till friday. Otherwise I'll close the bug as WONTFIX.
(In reply to Jaromír Cápík from comment #1)
> Hello David.
> This is caused by inevitable design changes made upstream and it isn't
> easily possible to return to the previous behaviour since the current
> behaviour is already a result of compromise.
Thanks for the coherent response. Do you have a link to mail archive or somewhere that I could familiarise myself with the previous discussion and the reasons why it was considered useful to unconditionally clear the screen, without even a config file or environment variable to modify the default behaviour?
The screen clearing is an indirect result of changes in terminal manipulations which were introduced by Jim Warner (author of the 'top' tool) in order to suppress flooding the 'top' tool with SIGWINCH signals generated by some of the widely used terminal applications. It was me who reported the flooding issue and he tried to do his best in order to resolve it and released a fix for the issue in form of 8 separate commits. The commit introducing the screen clearing has the following hash : 'dedaf6e1a81738ff08ee8e8523871e12f555ad6d'. I've done a deeper analysis of the commit and it seems I was wrong with evaluation of the solution complexity. There's a good chance of making the behaviour configurable without too much effort. But I need to discuss that with Jim first.
I'll keep you posted.
procps-ng-3.3.8-8.fc19 has been submitted as an update for Fedora 19.
Jim was willing to rework the solution to let the 'top' tool to keep the last listing on the screen and move the cursor to the bottom of the terminal (without any configuration changes). Please, test the 3.3.8-8.fc19 build and confirm if that resolves your issue.
Works nicely. Thank you very much for the prompt resolution.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing procps-ng-3.3.8-8.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
procps-ng-3.3.8-8.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.