TIP: Click on subject to list as thread! ANSI
echo: fmail_help
to: Wilfred van Velzen
from: Scott Little
date: 2011-11-13 12:39:30
subject: fsetup

[ On 2011-11-10 at 23:35:48, Wilfred van Velzen wrote to Scott Little ]

 WV> I think it does both. It certainly does direct screen writes (the B800
 WV> address is in the code). But there are also lots of geninterupt()
 WV> calls.

What interrupts is it generating?  int21h is DOS (probably for stdio),
int10h is video BIOS (probably to move/hide the cursor).

 SL>> both of which should be portable to a Win32 console without too
 SL>> much trouble
 WV> Maybe, if I knew how (do you mean using the conio.h family of
 WV> functions?) and it wouldn't be too much work I might be tempted. But I

Not directly.  conio.h looks to use DOS/BIOS calls, so it's
line/stream-oriented rather than a screen buffer.

The main reasons for using $B800 were speed and the fact that writing
anything to the lower-right cell using DOS automatically scrolled the
screen up, so if it's not doing anything else some simple wrapper functions
to set the cursor position and avoid the lower-right cell would suffice.

Win32 (and OS/2, AFAIK) has a buffer-oriented console, so code using $B800
is directly portable, but since *nix terminals are stream-oriented there's
no equivalent.

Win32: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682073(v=vs.85).aspx
OS/2: is dead ;)


--- He does the work of 3 men.... Larry, Moe & Curly.
* Origin: sysgod{at}sysgod.org (3:712/848)
SEEN-BY: 10/1 11/200 19/75 34/999 123/500 128/2 187 135/364 140/1 222/2 226/0
SEEN-BY: 230/150 250/306 261/20 38 100 1406 1410 266/1413 280/1027 320/119 219
SEEN-BY: 340/400 396/45 633/104 260 267 712/848 800/432 801/161 189 5030/1256
@PATH: 712/848 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.