550 - another bugfix, another pending test

This commit is contained in:
Kartik K. Agaram 2015-01-13 19:53:30 -08:00
parent 7ea584b892
commit ea5b8c2364
2 changed files with 7 additions and 0 deletions

View File

@ -215,6 +215,8 @@
(2:channel-address/raw <- init-channel 1:literal)
(fork-helper send-prints-to-stdout:fn nil:literal/globals nil:literal/limit 2:channel-address/raw)
{ begin
; print any stray characters from keyboard *before* clearing screen
(flush-stdout)
(clear-screen)
(print-primitive (("Stupid text-mode chessboard. White pieces in uppercase; black pieces in lowercase. No checking for legal moves." literal)))
(cursor-to-next-line)
@ -243,5 +245,6 @@
; 'q' exits
; 'q' exits anywhere in move
; 'q' exits on second move
; flush stdout after printing out move and before clearing screen
;
; backspace, ctrl-u

4
mu.arc
View File

@ -1908,6 +1908,10 @@
}
)
(init-fn flush-stdout
(sleep for-some-cycles:literal 1:literal)
)
; after all system software is loaded:
(freeze system-function*)
) ; section 100 for system software