ChenYe
80e2d1961b
restore term when receive signal ( #200 )
...
* restore term when receive signal
add `CaptureExitSignal` to capture exit signals and exit gracefull(disabled by default)
* update deps
2022-04-24 21:25:55 +08:00
soopsio
f6d7a1f6fb
Fix ioloop groutine leaks bug. ( #136 )
...
* Fix ioloop groutine leaks bug.
* fix func (o *Operation) ioloop() L:125 hangs
2017-12-08 09:17:16 +08:00
mrsinham
9cc74fe5ad
Prefill user input ( #101 )
...
* Using a fillable stdin reader
* Adding some documentation to the new features
2017-10-02 20:43:15 +08:00
mrsinham
af545c8af6
enabling disabling history ( #102 )
2017-10-02 20:42:28 +08:00
Saeed Rasooli
aa9ed7db49
NewEx: fix panic if cfg.Painter is not given ( #129 )
2017-10-02 14:46:29 +08:00
Thomas Bradford
707fd8ecaa
intercept line rendering using a 'Painter' ( #116 )
2017-10-01 22:58:28 -05:00
Paul Tagliamonte
41eea22f71
Add two API methods to set RuneBuffer state before prompting the user ( #105 )
...
* Expose RuneBuffer.Set through Operation's API
This allows a user to prefill a line before the user is given a prompt,
so that you can provide a default, user-editable input line.
* Add a Instance.ReadlineWithDefault API method
This will pre-fill the Operation.RuneBuffer with text before prompting
the user, and provide her with a method to edit the provided default.
2017-03-14 07:49:21 +08:00
Jiří Setnička
f892600c35
Ability to filter out input runes ( #104 )
...
Could be used to mask/disable some actions (like Ctrl-Z, or searching by
Ctrl-R and Ctrl-S)
2017-02-20 09:51:01 +08:00
chzyer
94eaec69a7
add HistorySearchFold ( #86 )
...
* add HistorySearchFold
* [history] fix test
2016-10-03 14:51:04 +08:00
chzyer
6cbf970b0b
lazy init CancelableStdin() ( #78 )
2016-09-04 21:02:24 +08:00
chzyer
bc5c91eb5b
remove unused files
2016-09-03 11:26:39 +08:00
chzyer
31eb6be473
support insert tag char ( #74 )
2016-09-02 20:10:31 +08:00
chzyer
1e0917c739
fix typo
2016-04-21 10:06:19 +08:00
chzyer
218eb7fff6
[example] Add a IM example
2016-03-31 10:55:53 +08:00
chzyer
4e554e2dd0
fix remote
2016-03-23 17:07:53 +08:00
chzyer
b57eccfd02
add remote mode
2016-03-13 18:32:48 +08:00
Cheney
bd7c8c6fbe
release 1.2
2016-03-05 15:45:42 +08:00
Cheney
c4ec21b1c6
fix stdin in windows
2016-03-05 15:45:42 +08:00
Cheney
867002449c
refactory
2016-03-05 15:45:42 +08:00
Cheney
8181d5ed14
disable interactive when stdin is not a tty
2016-02-18 13:08:19 +08:00
Cheney
15e7be4ac2
add new interface and fixed crash if stdout isn't a tty
2016-02-18 11:25:41 +08:00
Cheney
07485bbd8f
update history interfaces. and support DisableAutoSaveHistory
2016-02-16 16:56:57 +08:00
Cheney
01cffb6cb2
support unique edit line
2016-02-15 10:03:41 +08:00
Ryan Hileman
05d3fbcc2a
add stdin remapping support
2015-12-23 21:54:46 -08:00
Cheney
71e9536f4b
add password support
2015-11-20 20:56:42 +08:00
Cheney
db2e5eae91
fix bugs: reset buffer after trigger io.EOF/ErrInterrupt
2015-11-20 11:25:30 +08:00
招牌疯子
492f37d9d4
fixed default history limit count error
...
The default history limit count will be 0 if cfg not set.
Which will make history lose efficacy.
2015-10-08 17:43:22 +08:00
Cheney
bfa8c1dfdb
add history limitation
2015-10-04 15:23:00 +08:00
Cheney
e89699832b
public Terminal and Operation in Instance
2015-10-03 14:11:13 +08:00
Cheney
879224ddc9
refactor
2015-10-02 10:37:21 +08:00
Cheney
79d1bf27b4
add simple vim mode
2015-10-01 22:44:43 +08:00
Cheney
3ccecf626d
add readpassword
2015-09-30 14:16:46 +08:00
Cheney
d4826eb059
add ansi writer
2015-09-29 00:26:49 +08:00
Cheney
7537bea372
add set prompt
2015-09-27 18:54:26 +08:00
Cheney
d4ceb57901
let stdout/stderr io.Writer configurable
2015-09-27 09:04:50 +08:00
Cheney
d07044cdb6
add prefix completer
2015-09-26 00:31:09 +08:00
Cheney
04f86e9c53
add auto complete
2015-09-25 22:56:00 +08:00
Cheney
69871d9ae0
update readme
2015-09-25 12:59:36 +08:00
Cheney
af66dc48f7
fix Ctrl+C in search mode do not send EOF
2015-09-25 00:49:55 +08:00
Cheney
a904b314b8
kickoff ioloop only needs, solved #1
2015-09-25 00:16:49 +08:00
Cheney
3f23122fec
support save history item
2015-09-22 18:16:24 +08:00
Cheney
c16e43d258
refactor
2015-09-21 13:30:10 +08:00
Cheney
6642cc6506
support history
2015-09-21 13:14:10 +08:00
Cheney
740e90a464
init commit
2015-09-20 23:14:29 +08:00