| \ terminal size stuff |
\ terminal size stuff |
| |
|
| \ Copyright (C) 1996 Free Software Foundation, Inc. |
\ Copyright (C) 1996,1997 Free Software Foundation, Inc. |
| |
|
| \ This file is part of Gforth. |
\ This file is part of Gforth. |
| |
|
| \ # rows and columns that the terminal has. |
\ # rows and columns that the terminal has. |
| \ these words are also present in PFE. |
\ these words are also present in PFE. |
| |
|
| |
[IFUNDEF] form : form &24 &80 ; [THEN] |
| |
|
| |
[IFUNDEF] rows |
| : rows ( -- u ) |
: rows ( -- u ) |
| form drop ; |
form drop ; |
| |
|
| : cols ( -- u ) |
: cols ( -- u ) |
| form nip ; |
form nip ; |
| |
[THEN] |