Merge pull request 'Release setup for 2.2.1' (#141) from release-setup-2.2.1 into develop
This commit is contained in:
commit
36ae4a228f
|
@ -106,6 +106,10 @@ R
|
|||
Reload the current page (does not destroy forward history).
|
||||
.TP
|
||||
.B
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 0
|
||||
Quick navigation to the first 10 links on a page. The 0 key will navigate to the link numbered '10', all other numbers navigate to their matching link number.
|
||||
.TP
|
||||
.B
|
||||
u
|
||||
Scroll up an amount corresponding to 75% of your terminal window height in the current document.
|
||||
.TP
|
||||
|
|
|
@ -162,6 +162,12 @@ func (c *client) TakeControlInput() {
|
|||
input := cui.Getch()
|
||||
|
||||
switch input {
|
||||
case '1', '2', '3', '4', '5', '6', '7', '8', '9', '0':
|
||||
if input == '0' {
|
||||
c.goToLink("10")
|
||||
} else {
|
||||
c.goToLink(string(input))
|
||||
}
|
||||
case 'j', 'J':
|
||||
// scroll down one line
|
||||
c.ClearMessage()
|
||||
|
|
|
@ -56,8 +56,8 @@ func Exit(exitCode int, msg string) {
|
|||
// InitTerm sets the terminal modes appropriate for Bombadillo
|
||||
func InitTerm() {
|
||||
SetCharMode()
|
||||
Tput("rmam") // turn off line wrapping
|
||||
Tput("smcup") // use alternate screen
|
||||
Tput("rmam") // turn off line wrapping
|
||||
}
|
||||
|
||||
// CleanupTerm reverts changs to terminal mode made by InitTerm
|
||||
|
|
Loading…
Reference in New Issue