summaryrefslogtreecommitdiff
path: root/junk1.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-31 16:05:34 -0600
committerJeff Carr <[email protected]>2025-01-31 22:08:21 -0600
commitbac14a675bb0cf284809ff31db98f4a3799fe1f6 (patch)
treefb8ca54f5b8fcf949fa6b57c417fc23cd5f2254e /junk1.go
parentb7cd6d07fcaa69d009b3f33f7c59afb16b719029 (diff)
lots of work to clean up my old code
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
}