tsm: screen: introduce scrollback-buffer line IDs
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 5 Oct 2012 11:24:58 +0000 (13:24 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 5 Oct 2012 11:24:58 +0000 (13:24 +0200)
commit1f11f8c961beff3b95a10ea5afa3af0e5b5f6c69
tree872dfd932ace3b652f3f89af8f3e0dbe6b84359b
parente2f614ab1a57c8ba057db3a074c2a38c314890fd
tsm: screen: introduce scrollback-buffer line IDs

If we have pointers somewhere into the scrollback-buffer, there is not
easy way to see which of two lines comes first. Therefore, we introduce
scrollback buffer IDs. These are unique and every line gets one assigned
when it is linked into the sb-buffer. These IDs guarantee that front lines
have lower IDs than bottom lines.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/tsm_screen.c