remove suspend/resume

This commit is contained in:
Liam Galvin 2018-08-12 16:25:59 +01:00
parent 6d10ffd17c
commit f6df4d1931
3 changed files with 0 additions and 20 deletions

View File

@ -67,8 +67,6 @@ Ensure you have your latest graphics card drivers installed before use.
|--------------------|---------------------| |--------------------|---------------------|
| Paste | ctrl + shift + v | Paste | ctrl + shift + v
| Interrupt (SIGINT) | ctrl + c | Interrupt (SIGINT) | ctrl + c
| Suspend | ctrl + s
| Resume | ctrl + q
## Configuration ## Configuration

View File

@ -30,10 +30,6 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
case glfw.KeyC: // ctrl^c case glfw.KeyC: // ctrl^c
gui.logger.Debugf("Sending CTRL^C") gui.logger.Debugf("Sending CTRL^C")
gui.terminal.Write([]byte{0x3}) // send EOT gui.terminal.Write([]byte{0x3}) // send EOT
case glfw.KeyS:
gui.terminal.Suspend()
case glfw.KeyQ:
gui.terminal.Resume()
} }
} }
} }

View File

@ -14,20 +14,6 @@ var escapeSequenceMap = map[rune]escapeSequenceHandler{
0x1b: ansiHandler, 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) { func (terminal *Terminal) processInput(ctx context.Context, pty chan rune) {
// https://en.wikipedia.org/wiki/ANSI_escape_code // https://en.wikipedia.org/wiki/ANSI_escape_code