After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348342 - Add function to get current lines from scrollback buffer
Add function to get current lines from scrollback buffer
Status: RESOLVED INVALID
Product: vte
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-22 16:45 UTC by Mario Manno
Modified: 2008-09-12 00:06 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
get current number of rows from scrollback buffer (1.09 KB, patch)
2006-07-22 16:46 UTC, Mario Manno
none Details | Review

Description Mario Manno 2006-07-22 16:45:24 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.
Comment 1 Mario Manno 2006-07-22 16:46:15 UTC
Created attachment 69388 [details] [review]
get current number of rows from scrollback buffer
Comment 2 g11024342@trbvm.com 2008-09-11 13:12:38 UTC
Sounds like a good idea. There is also bug #24457 which is about logging a session.

Mario, did you ever complete your patch?
Comment 3 Mario Manno 2008-09-12 00:06:26 UTC
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.