Re: Just spent 5 hours bug fixing HLA Adventure (my head's about to roll off!)



On Sat, 11 Jun 2005 23:53:17 +0000
Frank Kotler <fbk@xxxxxxxxxxx> wrote:

:The "status bar" works great in dos. I'm
:curious how you intend to port it to Linux...

What I'm doing at the moment is sending the following control strings:

clrstr db 27,'[2J' ;clear screen and home cursor
clrstrl = $-clrstr
cupstr db 27,'[rr;ccH' ;set cursor
cupstrl = $-cupstr
revstr db 27,'[0;7m' ;reverse video string
revstrl = $-revstr
norstr db 27,'[0m' ;normal video string
norstrl = $-norstr
eolstr db 27,'[K' ;erase to eol string
eolstrl = $-eolstr
savstr db 27,'7' ;save cursor position
savstrl = $-savstr
resstr db 27,'8' ;restore cursor position
resstrl = $-resstr

Although I am not changing the scroll region, I found that if I write the
banner to row 2, it will be at the top when the screen does its normal
scroll.

If you had a slightly newer kernel, or if I could figure out a way to
make (old) mmap work without a file descriptor, I could send you a beta
version, and let you see for yourself.

-- Chuck
.