Can anyone suggest an alternate definition for page and at-xy ?
AFAIK you need to put ANSI.SYS in your CONFIG.SYS for the escape
sequences to work.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
>In article <588e78af.02021...@posting.google.com>,
> lwil...@jpusa.org (Leland Williams) writes:
>>I am using the dos executable of Gforth-0.4.0 in a Ms-DOS window in
>>windows 95, but the supplied word for 'page' which is supposed to
>>clear the screen only mangaes to put garbage on the screen. I think it
>>an other screen commands use the 'ESC[' word which emits a esc
>>sequence, but it only puts garbatge on the screen.
>
>AFAIK you need to put ANSI.SYS in your CONFIG.SYS for the escape
>sequences to work.
>
Of course, the trouble is that few people in 2002 have ANSI.SYS
installed.
Try
MOV AH,0FH
INT 10h
XOR AH,AH
INT 10h
The first int 10h gets the current video mode in AL; the second one
sets the current video mode to the one in AL.
If you know in advance that the video mode is 3 (80x25 color), you can
just:
mov ax,3
int 10h
[ clear screen without using ANSI.SYS ]
> MOV AH,0FH
> INT 10h
Learning something new everyday. You mean, Gforth 0.5.0 runs in 16-bit mode
on DOS? Even if it comes with a DOS extender (GO32?) I'd have expected this
to cause trouble.
-marcel
Leland
m...@iaehv.iae.nl (Marcel Hendrix) wrote in message news:<hwzc8.2457$Yf1....@typhoon.bart.nl>...
Thanks again for your attention.
Leland Williams
Joel Rubin <jmr...@ix.netcom.com> wrote in message news:<v4857ussrv7op545u...@4ax.com>...
Assuming that GForth is a simple Win32 console program, all you need to
do is load an ANSI console drive (either in the DOS box before launching
GForth or in AUTOEXEC.BAT or CONFIG.SYS).
--
-GJC
-gch...@TheWorld.com
-War is the last resort of the incompetent.
This code is the same in either 16 bit or 32 bit segments. If it is in
a 32 bit segment, the assembler has to add override opcodes to force 16 bit
processing. Regardless, the DOS function still takes the same parameters
and the source code looks the same.
Won't work on NT4 or W2K, unless 'an ANSI console driver' is a recent
development, specifically for these OS's.
-marcel
an...@mips.complang.tuwien.ac.at (Anton Ertl) wrote in message news:<a4t2f4$f1e$1...@news.tuwien.ac.at>...
Hey, ansi works! Thanks Anton !
marcel, the computer at work has an out of the box Windows 98 OS, and
it has ANSI.SYS. I don't know how NT$ or W2K work, but see if they
have a Dos Mode option, and put a device= to the file in the
config.sys box.
AFAIK: as far as I know. (Read that any way you like.)
Jerry
--
Engineering is the art of making what you want from things you can get.
-----------------------------------------------------------------------