Mail Archives: djgpp/1996/06/12/14:32:56
Xref: | news2.mv.net comp.os.msdos.djgpp:4886
|
From: | richard DOT griffiths AT zetnet DOT co DOT uk (Griffiths, R - 196)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | HCI
|
Date: | 12 Jun 1996 13:53:50 GMT
|
Organization: | ;-(
|
Lines: | 41
|
Message-ID: | <4pmi5e$932@roch.zetnet.co.uk>
|
NNTP-Posting-Host: | man-q3.zetnet.co.uk
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have decided that I wish to write a cool file manager type affair for my
self.
I will use djgpp to do the job, but I have a question about how I can
implement the HCI I want.
I wish to have a simple no cluttered text mode interface, similar to that
of the RAR archiver.
However, I am at a loss as to how to do this.
I first thought that I could draw the screen in thedraw, save it as ANSI,
and then just flip it to the screen. I could then have a loop which would
update file information each time a key is pressed. Would this work? I
suspect it may be very jerky. And what if I wish to change the colour?
Next I thought that I could use thedraw again, but this time save the file
as ASCII and just print it to the screen using printf. Would this work?,
and how could can I change the text colour?
Is there any standard way of producing a interface like this.
To recap, my conception at the moment:
do{
flip screen shell on to the screen;
print file info;
if (kbhit()) up date file information;
} while(!Quit);
Would this work?
Also, how would I go about saving and restoring the text mode screen?
Thanks for all info,
Richard Griffiths.
- Raw text -