summaryrefslogtreecommitdiff
path: root/junk1.go
diff options
context:
space:
mode:
Diffstat (limited to 'junk1.go')
-rw-r--r--junk1.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/junk1.go b/junk1.go
index bc38b11..3f833e2 100644
--- a/junk1.go
+++ b/junk1.go
@@ -6,24 +6,13 @@ package main
import (
"fmt"
- "syscall"
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
)
-// handle ctrl+z
-func handle_ctrl_z(g *gocui.Gui, v *gocui.View) error {
- gocui.Suspend()
- log.Info("got ctrl+z")
- syscall.Kill(syscall.Getpid(), syscall.SIGSTOP)
- log.Info("got ctrl+z syscall() done")
- gocui.Resume()
- return nil
-}
-
-func defaultKeybindings(g *gocui.Gui) error {
+func OLDdefaultKeybindings(g *gocui.Gui) error {
if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {
return err
}