version 1.2, 1996/01/25 16:45:56
|
version 1.5, 2000/09/23 15:46:59
|
Line 1
|
Line 1
|
\ 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. |
|
|
Line 16
|
Line 16
|
|
|
\ You should have received a copy of the GNU General Public License |
\ You should have received a copy of the GNU General Public License |
\ along with this program; if not, write to the Free Software |
\ along with this program; if not, write to the Free Software |
\ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
\ # 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] |