Re: [dwm] [dvtm] scrollback and 256color support

From: Donald Chai <donald.chai_AT_gmail.com>
Date: Thu, 28 Aug 2008 15:56:04 -0700

> Thanks for the patches, scrollback is probably the most requested
> dvtm feature. You introduced a separate buffer for the scrollback
> data, did you consider allocating more space for the main buffer and
> just adjusting the scroll_{top,bot} pointers and using them in
> madtty_draw to draw only the currently visible area?

I did consider that, actually. Several reasons why I use a separate
buffer:
        - From what I understand of vt100/xterm behavior, you can use
DECSTBM to set the scrolling region. If the top line of the screen is
*not* in the scrolling region, you'd need to do some extra work to
have text scroll offscreen.
        - The scrollback buffer is a circular buffer for runtime efficiency,
while the screen is a regular array.
        - I'd like to add some kind of compression for the scrollback buffer
(e.g. run length encoding for character attributes, convert from
wchar_t using wcsrtombs).
Received on Thu Aug 28 2008 - 22:56:04 UTC

This archive was generated by hypermail 2.2.0 : Thu Aug 28 2008 - 23:00:05 UTC