[kmscon-devel] [PATCH]: scroll back functions: return how many lines were scrolled back

rndfax rndfax at yandex.ru
Mon Mar 24 08:43:19 PDT 2014


>>  libtsm itself suffers from lack of responses to user when user calls API function.
>>  As for now i need responses from scroll back functions (tsm_screen_sb_up/sb_down/...), so i made this patch (in attach).
>
> Why exactly do you need that? The scroll-back buffer is tsm-internal
> and there shouldn't be any gain in returning that information. I'm
> really curious about the use-case.

Hmmm, yes. I found a way (right way, of course) to not to use this information. (I used this info to adjust my view to tsm screen)
So thx to you for asking this question and making me think again.

But still, since this mail-listing is alive (i saw only spam :)):

1) as i understood there is no function to get the actual age of the screen.
So may be there should be tsm_screen_get_age (or tsm_screen_is_dirty)?
(after tsm_vte_input it's better to know whether to call tsm_screen_draw or not)

2) tsm_screen_draw returns age, and this age only used in draw_cb.
Is it possible to call draw_cb only on updated cells?
If so, then age will become internal.

3) character colors: fccode and bccode what are they?
If i see fccode = 4, bccode = 3 then what colors should i display?

4) and scroll-back buffer.
I make my window small, draw some huge text and then make my window bigger and then use scroll back to see above text.
And i see garbage where there were no text.
It seems like tsm calls malloc/realloc but not zeroing the added memory (or my hands are too bent).


More information about the kmscon-devel mailing list