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() }
func Exit() { LogS("Exiting now") display.Reset() os.Exit(0) }