URL: <http://savannah.gnu.org/bugs/?49377>
Summary: [PATCH] Begin viewing scrollback buffer at the first line of output instead of at the start of the scrollback buffer Project: GNU Screen Submitted by: guoci Submitted on: Mon 17 Oct 2016 10:28:14 PM GMT Category: User Interface Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: Cur Dev Sources Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Details: This issue has been discussed before: https://bbs.archlinux.org/viewtopic.php?id=108640 Copy mode and “hardcopy -h” always begin at the start of the scrollback buffer. If a user sets a large scrollback limit with little output, then copy mode and the file written by “hardcopy -h” will begin with many blank lines before the first line of output. The attached patch limits the scrollback buffer traversal to begin at the first line of output, instead of the beginning of the scrollback buffer. Also, code for moving to %age of buffer is changed to use float division so that two different rep_cnt will not jump to the same location, except for buffers less than 100 lines. Previously, the computed line number is rounded down to the nearest 100th due to integer division. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 17 Oct 2016 10:28:14 PM GMT Name: scrollback_fix.patch Size: 3kB By: guoci <http://savannah.gnu.org/bugs/download.php?file_id=38748> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49377> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/