mirror of https://github.com/liamg/aminal.git
remove suspend/resume
This commit is contained in:
parent
6d10ffd17c
commit
f6df4d1931
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue