From b0ef6d58e25e11145c165d59dcd3c79246b34931 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 8 Mar 2017 22:14:05 -0800 Subject: 3767 --- 100trace_browser.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '100trace_browser.cc') diff --git a/100trace_browser.cc b/100trace_browser.cc index e8f47890..5464080a 100644 --- a/100trace_browser.cc +++ b/100trace_browser.cc @@ -38,6 +38,7 @@ //: `t`: Move cursor to top line on screen. //: `c`: Move cursor to center line on screen. //: `b`: Move cursor to bottom line on screen. +//: `T`: Scroll line at cursor to top of screen. :(before "End Primitive Recipe Declarations") _BROWSE_TRACE, @@ -114,6 +115,11 @@ void start_trace_browser() { // move cursor to bottom of screen Display_row = tb_height()-1; } + if (key == 'T') { + Top_of_screen = get(Trace_index, Display_row); + Display_row = 0; + refresh_screen_rows(); + } if (key == 'J' || key == TB_KEY_PGDN || key == TB_KEY_CTRL_F) { // page-down if (Trace_index.find(tb_height()-1) != Trace_index.end()) { -- cgit 1.4.1-2-gfad0 ftware → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/index.html
blob: 0581d554515b7e02ccebbced48439594bddbf0d3 (plain) (tree)
1
2
3
4
5
6
7
8
9