terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Clicking on Find scrolls up the Terminal

Open vikasnataraja opened this issue 5 years ago • 3 comments

Prerequisites

  • [x] I have searched open and closed issues for duplicates.

Describe the bug

When I click on the Find/Search icon in the Terminal, it automatically scrolls up if I don't search for something and close the search bar by clicking on the same icon. terminal_search

To Reproduce

Steps to reproduce the behavior:

  1. Go to Terminal
  2. Click on the Find/Search button
  3. Click on the same button again
  4. See error (scrolls up)

Expected behavior

The search bar should close without scrolling up.

Platform Information

  • elementary OS 5.1 Hera
  • Kernel version: 5.0.0-37-generic
  • Dell XPS 13 9380

Please check what applies:

  • [ ] I'm using the latest version from git that I've manually compiled
  • [ ] I'm using the latest released stable version
  • [x] Downloaded from the official website

vikasnataraja avatar Jan 17 '20 03:01 vikasnataraja

This seems to be associated with the use of the clear command. It did not happen for me when clear was omitted (but I could reproduce when the last command was clear).

jeremypw avatar Jan 17 '20 11:01 jeremypw

I noticed that too, clear appears to be the culprit here. Does that mean it is a bash problem or a kernel version problem?

vikasnataraja avatar Jan 17 '20 16:01 vikasnataraja

Further investigation indicates that the problem is not clear itself - it is to do with getting to a state where there are scrollback lines above the top of the terminal window and the last command is not at the bottom of the terminal window. So, if you create some output (more than a screenful) then enter clear, then enter more commands or new lines until the promt reaches the bottom of the screen, then toggling "Find" no longer scrolls the screen by one line. I think this is probably an upstream issue. Afaict, toggling the "Find" button just toggles a GtkRevealer and moves the keyboard focus between the SearchEntry and the current terminal.

I experimented with Xfce terminal and found that after clear, if you make the window one line smaller by resizing from the top edge and then revert to the original size then one extra scrollback line is displayed. So I do not think the is an elementary Terminal issue specifically.

jeremypw avatar Jan 17 '20 18:01 jeremypw