gilo/gilo.go
Timothy Warren e8ba6825aa Draw tildes
2021-03-22 09:12:39 -04:00

22 lines
355 B
Go

package main
import (
"timshome.page/gilo/internal/editor"
"timshome.page/gilo/internal/terminal"
)
func main() {
// Go to proper raw mode, but restore canonical mode at exit
oldState := terminal.RawOn()
defer terminal.RawOff(oldState)
// The input loop
for {
editor.RefreshScreen()
if editor.ProcessKeypress() == false {
break
}
}
}