gilo/gilo.go
2021-03-24 14:17:29 -04:00

24 lines
365 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)
e := editor.New()
// The input loop
for {
e.RefreshScreen()
if e.ProcessKeypress() == false {
break
}
}
}