summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Czapliński <czapkofan@gmail.com>2018-10-25 22:43:18 +0200
committerMateusz Czapliński <czapkofan@gmail.com>2018-10-25 22:43:18 +0200
commit61e1696fe92ab4e08db1c51880e61e492726f4ae (patch)
tree96bcb972ea57a761d593d30f2a748938a934d700
parenta2c1d93dac40b5851e18830bdf4b47f918d41620 (diff)
add more TODOs
-rw-r--r--up.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/up.go b/up.go
index 8bb0f27..836850d 100644
--- a/up.go
+++ b/up.go
@@ -34,6 +34,8 @@ import (
"github.com/spf13/pflag"
)
+// TODO: [#4] in case of error, show it in red (bg?), then below show again initial normal output
+// TODO: F1 should display help, and it should be multi-line, and scrolling licensing credits
// TODO: some key shortcut to increase stdin capture buffer size (unless EOF already reached)
// TODO: show status infos:
// - red fg + "up: process returned with error code %d" -- when subprocess returned an error
@@ -156,6 +158,9 @@ func main() {
switch getKey(ev) {
case key(tcell.KeyEnter):
restart = true
+ case key(tcell.KeyCtrlUnderscore),
+ ctrlKey(tcell.KeyCtrlUnderscore):
+ // TODO: ask for another character to trigger command-line option, like in `less`
case key(tcell.KeyCtrlS),
ctrlKey(tcell.KeyCtrlS):