diff options
-rw-r--r-- | 100trace_browser.cc | 12 | ||||
-rw-r--r-- | html/100trace_browser.cc.html | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/100trace_browser.cc b/100trace_browser.cc index 74ec39b4..e8f47890 100644 --- a/100trace_browser.cc +++ b/100trace_browser.cc @@ -35,9 +35,9 @@ //: `g` or `home`: Move cursor to start of trace. //: `G` or `end`: Move cursor to end of trace. //: -//: `H`: Move cursor to top line on screen. -//: `M`: Move cursor to center line on screen. -//: `L`: Move cursor to bottom line on screen. +//: `t`: Move cursor to top line on screen. +//: `c`: Move cursor to center line on screen. +//: `b`: Move cursor to bottom line on screen. :(before "End Primitive Recipe Declarations") _BROWSE_TRACE, @@ -102,15 +102,15 @@ void start_trace_browser() { // move cursor one line up if (Display_row > 0) --Display_row; } - if (key == 'H') { + if (key == 't') { // move cursor to top of screen Display_row = 0; } - if (key == 'M') { + if (key == 'c') { // move cursor to center of screen Display_row = tb_height()/2; } - if (key == 'L') { + if (key == 'b') { // move cursor to bottom of screen Display_row = tb_height()-1; } diff --git a/html/100trace_browser.cc.html b/html/100trace_browser.cc.html index 1f9208a1..9c4247cc 100644 --- a/html/100trace_browser.cc.html +++ b/html/100trace_browser.cc.html @@ -95,9 +95,9 @@ if ('onhashchange' in window) { <span id="L35" class="LineNr"> 35 </span><span class="Comment">//: `g` or `home`: Move cursor to start of trace.</span> <span id="L36" class="LineNr"> 36 </span><span class="Comment">//: `G` or `end`: Move cursor to end of trace.</span> <span id="L37" class="LineNr"> 37 </span><span class="Comment">//:</span> -<span id="L38" class="LineNr"> 38 </span><span class="Comment">//: `H`: Move cursor to top line on screen.</span> -<span id="L39" class="LineNr"> 39 </span><span class="Comment">//: `M`: Move cursor to center line on screen.</span> -<span id="L40" class="LineNr"> 40 </span><span class="Comment">//: `L`: Move cursor to bottom line on screen.</span> +<span id="L38" class="LineNr"> 38 </span><span class="Comment">//: `t`: Move cursor to top line on screen.</span> +<span id="L39" class="LineNr"> 39 </span><span class="Comment">//: `c`: Move cursor to center line on screen.</span> +<span id="L40" class="LineNr"> 40 </span><span class="Comment">//: `b`: Move cursor to bottom line on screen.</span> <span id="L41" class="LineNr"> 41 </span> <span id="L42" class="LineNr"> 42 </span><span class="Delimiter">:(before "End Primitive Recipe Declarations")</span> <span id="L43" class="LineNr"> 43 </span>_BROWSE_TRACE<span class="Delimiter">,</span> @@ -162,15 +162,15 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// move cursor one line up</span> <span id="L103" class="LineNr">103 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>Display_row > <span class="Constant">0</span><span class="Delimiter">)</span> --Display_row<span class="Delimiter">;</span> <span id="L104" class="LineNr">104 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L105" class="LineNr">105 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'H'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L105" class="LineNr">105 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'t'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// move cursor to top of screen</span> <span id="L107" class="LineNr">107 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Display_row = <span class="Constant">0</span><span class="Delimiter">;</span> <span id="L108" class="LineNr">108 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L109" class="LineNr">109 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'M'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L109" class="LineNr">109 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'c'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L110" class="LineNr">110 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// move cursor to center of screen</span> <span id="L111" class="LineNr">111 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Display_row = tb_height<span class="Delimiter">()</span>/<span class="Constant">2</span><span class="Delimiter">;</span> <span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L113" class="LineNr">113 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'L'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L113" class="LineNr">113 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'b'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L114" class="LineNr">114 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// move cursor to bottom of screen</span> <span id="L115" class="LineNr">115 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Display_row = tb_height<span class="Delimiter">()</span>-<span class="Constant">1</span><span class="Delimiter">;</span> <span id="L116" class="LineNr">116 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> |