--- gforth/Attic/kernel.fs 1997/03/19 18:27:16 1.18 +++ gforth/Attic/kernel.fs 1997/03/21 12:21:13 1.20 @@ -1038,7 +1038,10 @@ G -1 warnings T ! 0C constant #ff ( -- c ) \ gforth 0A constant #lf ( -- c ) \ gforth -: bell #bell emit ; +: bell ( -- ) \ gforth + \g makes a beep and flushes the output buffer + #bell emit + outfile-id flush-file drop ; : cr ( -- ) \ core \ emit a newline #lf ( sic! ) emit ; @@ -1262,6 +1265,7 @@ DEFER DOERROR ; : (DoError) ( throw-code -- ) + [ has-os [IF] ] stderr to outfile-id [ [THEN] ] sourceline# IF source >in @ sourceline# 0 0 .error-frame THEN @@ -1283,7 +1287,9 @@ DEFER DOERROR ELSE .error THEN - normal-dp dpp ! ; + normal-dp dpp ! + [ has-os [IF] ] stdout to outfile-id [ [THEN] ] +; ' (DoError) IS DoError