Пример #1
0
func main() {
	defer display.Reset()

	bytes, err := ioutil.ReadFile(files[0])
	if err != nil {
		panic(err)
	}

	ed = editor.NewEditor(bytes, files[0])

	display.Show([]rune(string(bytes)), []rune{})
	display.Draw()
	Poll()
}
Пример #2
0
func Exit() {
	LogS("Exiting now")
	display.Reset()
	os.Exit(0)
}