On Sun, Jan 23, 2011 at 1:03 AM, pancake <panc...@youterm.com> wrote: > That would be faster :) > > What about adding scrolling support for just this buffer? > > On Jan 23, 2011, at 12:12 AM, Rob <robpill...@gmail.com> 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 environment. Another solution would be to write the scrollback buffer in a file, but this can raise some security issue.