Clear the framebuffer on exit

This commit is contained in:
flamingcow
2026-07-25 19:42:45 -07:00
parent 419bdc4bb7
commit 7a9567da55
+2
View File
@@ -85,6 +85,8 @@ func openFramebuffer(path string) (*framebuffer, error) {
} }
func (fb *framebuffer) close() { func (fb *framebuffer) close() {
fb.fill(rgb{})
fb.flush()
unix.Munmap(fb.mem) unix.Munmap(fb.mem)
fb.file.Close() fb.file.Close()
} }