GNOME Bugzilla – Bug 348342
Add function to get current lines from scrollback buffer
Last modified: 2008-09-12 00:06:26 UTC
I'm working on a patch for gnome-terminal which allows to save the scrollback buffer to file. (#24457) I have no idea how to get the current number of lines in the buffer, but need to know this to call 'vte_terminal_get_text_range'. If there is no other way i would suggest the following patch.
Created attachment 69388 [details] [review] get current number of rows from scrollback buffer
Sounds like a good idea. There is also bug #24457 which is about logging a session. Mario, did you ever complete your patch?
It worked pretty well a few years back... The session logging patch in bug #24457 uses vte_terminal_get_cursor_position () to acquire the current number of rows. I rewrote my "save scrollback to file" patch and do not need the patch against vte anymore.