| |
|
| \ Output 13feb93py |
\ Output 13feb93py |
| |
|
| has-os [IF] |
has? os [IF] |
| 0 Value outfile-id ( -- file-id ) \ gforth |
0 Value outfile-id ( -- file-id ) \ gforth |
| |
|
| : (type) ( c-addr u -- ) \ gforth |
: (type) ( c-addr u -- ) \ gforth |
| 0C constant #ff ( -- c ) \ gforth |
0C constant #ff ( -- c ) \ gforth |
| 0A constant #lf ( -- c ) \ gforth |
0A constant #lf ( -- c ) \ gforth |
| |
|
| : bell #bell emit [ has-os [IF] ] outfile-id flush-file drop [ [THEN] ] ; |
: bell #bell emit [ has? os [IF] ] outfile-id flush-file drop [ [THEN] ] ; |
| : cr ( -- ) \ core |
: cr ( -- ) \ core |
| \ emit a newline |
\ emit a newline |
| [ ?? has-crlf [IF] ] #cr emit #lf emit |
[ has? crlf [IF] ] #cr emit #lf emit |
| [ [ELSE] ] #lf emit |
[ [ELSE] ] #lf emit |
| [ [THEN] ] |
[ [THEN] ] |
| ; |
; |