mirror of https://github.com/chzyer/readline.git
fixes readme & example
This commit is contained in:
parent
bb60b8a58f
commit
f517af0910
|
@ -19,7 +19,6 @@ You can read the source code in [example/main.go](https://github.com/chzyer/read
|
||||||
|
|
||||||
# Todo
|
# Todo
|
||||||
|
|
||||||
* Add support for windows
|
|
||||||
* Vim mode
|
* Vim mode
|
||||||
* More funny examples
|
* More funny examples
|
||||||
|
|
||||||
|
@ -203,6 +202,7 @@ Users can change that in terminal simulator(i.e. iTerm2) to `Alt`+`B`
|
||||||
| Mac OS X iTerm2 Tmux | screen |
|
| Mac OS X iTerm2 Tmux | screen |
|
||||||
| Ubuntu Server 14.04 LTS | linux |
|
| Ubuntu Server 14.04 LTS | linux |
|
||||||
| Centos 7 | linux |
|
| Centos 7 | linux |
|
||||||
|
| Windows 10 | - |
|
||||||
|
|
||||||
### Notice:
|
### Notice:
|
||||||
* `Ctrl`+`A` is not working in screen because it used as a control command by default
|
* `Ctrl`+`A` is not working in screen because it used as a control command by default
|
||||||
|
|
|
@ -7,8 +7,6 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gopkg.in/logex.v1"
|
|
||||||
|
|
||||||
"github.com/chzyer/readline"
|
"github.com/chzyer/readline"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -41,7 +39,6 @@ func main() {
|
||||||
HistoryFile: "/tmp/readline.tmp",
|
HistoryFile: "/tmp/readline.tmp",
|
||||||
AutoComplete: completer,
|
AutoComplete: completer,
|
||||||
})
|
})
|
||||||
logex.SetStd(logex.NewLoggerEx(l.Stderr()))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue