From f6df4d19319f2f92b7cece9a6c9c510fb0cb8206 Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Sun, 12 Aug 2018 16:25:59 +0100 Subject: [PATCH] remove suspend/resume --- README.md | 2 -- gui/input.go | 4 ---- terminal/output.go | 14 -------------- 3 files changed, 20 deletions(-) diff --git a/README.md b/README.md index 7ae0cf5..92954b1 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,6 @@ Ensure you have your latest graphics card drivers installed before use. |--------------------|---------------------| | Paste | ctrl + shift + v | Interrupt (SIGINT) | ctrl + c -| Suspend | ctrl + s -| Resume | ctrl + q ## Configuration diff --git a/gui/input.go b/gui/input.go index b356e78..cc473c7 100644 --- a/gui/input.go +++ b/gui/input.go @@ -30,10 +30,6 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti case glfw.KeyC: // ctrl^c gui.logger.Debugf("Sending CTRL^C") gui.terminal.Write([]byte{0x3}) // send EOT - case glfw.KeyS: - gui.terminal.Suspend() - case glfw.KeyQ: - gui.terminal.Resume() } } } diff --git a/terminal/output.go b/terminal/output.go index 0adba03..0b2e423 100644 --- a/terminal/output.go +++ b/terminal/output.go @@ -14,20 +14,6 @@ var escapeSequenceMap = map[rune]escapeSequenceHandler{ 0x1b: ansiHandler, } -func (terminal *Terminal) Suspend() { - select { - case terminal.pauseChan <- true: - default: - } -} - -func (terminal *Terminal) Resume() { - select { - case terminal.resumeChan <- true: - default: - } -} - func (terminal *Terminal) processInput(ctx context.Context, pty chan rune) { // https://en.wikipedia.org/wiki/ANSI_escape_code