shell: don't lose pixel graphics when moving cursor

This commit is contained in:
Kartik K. Agaram 2021-04-14 20:34:56 -07:00
parent 31b4368079
commit f485bed515
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ fn fake-screen-empty? _screen: (addr screen) -> _/eax: boolean {
}
var pixels-ah/eax: (addr handle stream pixel) <- get screen, pixels
var pixels/eax: (addr stream pixel) <- lookup *pixels-ah
rewind-stream pixels
var result/eax: boolean <- stream-empty? pixels
return result
}