mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-08 13:05:22 +08:00
Implement --expect option to support simple key bindings (#163)
This commit is contained in:
1 parent
9cfecf7f0b
commit
2a167aa030
9 files changed
+172
-5
No files matched your search
@@ -61,6 +61,10 @@ func DurWithin(
|
||||
return val
|
||||
}
|
||||
|
||||
func Between(val int, min int, max int) bool {
|
||||
return val >= min && val <= max
|
||||
}
|
||||
|
||||
// IsTty returns true is stdin is a terminal
|
||||
func IsTty() bool {
|
||||
return int(C.isatty(C.int(os.Stdin.Fd()))) != 0
|
||||
|
||||
Reference in new issue
Block a user