1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Cleanup and revise TTY interface

This commit is contained in:
Achilleas Anagnostopoulos
2017-07-05 15:52:45 +01:00
parent 286b8d9c71
commit 78c87ab165
2 changed files with 44 additions and 19 deletions

View File

@@ -1,19 +0,0 @@
package tty
import "io"
// Tty is implemented by objects that can register themselves as ttys.
type Tty interface {
io.Writer
io.ByteWriter
// Position returns the current cursor position (x, y).
Position() (uint16, uint16)
// SetPosition sets the current cursor position to (x,y). Console implementations
// must clip the provided cursor position if it exceeds the console dimensions.
SetPosition(x, y uint16)
// Clear clears the terminal.
Clear()
}