Scrolling randomly stops working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Usually, scrolling in the terminal window works as expected, which is like this:
- the terminal window has a scrollbar
- Assuming there are more lines (of commands you have typed + their output) than fit in the window, you can scroll up and down both by dragging the scrollbar and by using the mouse wheel
However, at random times, the Terminal starts behaving like this:
1 - the scrollbar's "handle" is as high as the whole scrollbar, as if the existing lines didn't exceed the height of the window, even if that is not the case
2 - you can't scroll by dragging the scrollbar (which is consistent with 1)
3 - the scrollwheel behaves like the up and down arrow keys, that is, it scans through previously typed commands in your history.
I have no idea what triggers the nonsense behavior. It seems to start happening randomly.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: gnome-terminal 3.16.2-1ubuntu4
ProcVersionSign
Uname: Linux 4.2.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Apr 5 19:05:18 2016
InstallationDate: Installed on 2013-10-11 (906 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to wily on 2016-01-18 (78 days ago)
The behavior you describe happens when the terminal switches to the so-called "alternate screen" upon encountering a certain escape sequence that is printed by your application. Usually fullscreen applications (such as the "mc" file manager, "less" pager, text editors etc.) use this mode.
If it gets stuck in this mode at your shell prompt, it means that your application did not exit cleanly and left the terminal in this mode. Execute the "reset" command to get out of this situation.