blob: 5103c153434fcc2ac39cfd4c800cbcb8e6bafd57 (
plain) (
tree)
|
|
import terminal
type
TermAttributes* = object
termWidth*: int
termHeight*: int
proc getTermAttributes*(): TermAttributes =
let attrs = TermAttributes(termWidth: terminalWidth(),
termHeight: terminalHeight())
return attrs
proc termGoto*(x: int, y: int) =
setCursorPos(stdout, x, y)
|