Re: [dev] [st] Separating the wheat (terminal emulation) from the chaff (X)

From: Aurélien Aptel <>
Date: Sun, 23 Jan 2011 13:01:12 +0100

On Sun, Jan 23, 2011 at 1:03 AM, pancake <> wrote:
> That would be faster :)
> What about adding scrolling support for just this buffer?
> On Jan 23, 2011, at 12:12 AM, Rob <> wrote:
>> How about getting the width and height of the largest screen at
>> startup and just fixing the buffer to be that size?
>> Then use the WM to expand the terminal, or add in scrolling. Either
>> way, the buffer stays the same.
>> Of course this doesn't work if your terminal can move to another
>> display, but thanks to X11, it's stuck on one, hurrah!

The problem is that lots of esc use line numbers. The first line being
the one at the top, obviously.

Terminals that implement scrollback add a line to the scrollback
buffer on \n (easy) or on esc that add lines like CSI L, CSI T, CSI
S, etc which can be tricky and sometimes plain useless in a curses

Another solution would be to write the scrollback buffer in a file,
but this can raise some security issue.
Received on Sun Jan 23 2011 - 13:01:12 CET

This archive was generated by hypermail 2.2.0 : Sun Jan 23 2011 - 13:12:02 CET