RC2014Z80 / picoterm

Pi Pico VGA Terminal Emulator For RC2014
BSD 3-Clause "New" or "Revised" License
64 stars 19 forks source link

IDEA: Scrool up/down content over a fixed region (fixed number of lines) #29

Open mchobby opened 1 year ago

mchobby commented 1 year ago

Picoterm can run a terminal over 30 lines (to be check) where standard screen size is 24 lines.

I do see room for status bar, function keys labels, etc.

So I would be great if PicoTerm could display and scroll content on the first 24 lines (a region, should be configurable) but internal software being able to draw outside that region (into another region).

Questions:

  1. Your remarks and comments ?
  2. is there some terminal/ESC sequence regarding this feature ?
abaffa commented 1 year ago

Hi,

yes. There is a escape to define a window region.

 Scrolling Region
        ESC [ Pt ; Pb r
        Pt is the number of the top line of the scrolling region;
        Pb is the number of the bottom line of the scrolling region
        and must be greater than  Pt.
        (The default for Pt is line 1, the default for Pb is the end of the screen)