Mail Archives: djgpp/1996/01/15/15:21:06
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:4391
|
From: | weiqigao AT crl DOT com (Weiqi Gao)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Console I/O functions? (was: porting "less")
|
Date: | Mon, 15 Jan 1996 04:13:42 GMT
|
Organization: | Spectrum Healthcare Services
|
Lines: | 33
|
Message-ID: | <4dcjv8$lc9@nntp.crl.com>
|
Reply-To: | weiqigao AT crl DOT com
|
NNTP-Posting-Host: | crl9.crl.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi,
I'm still trying to do a less port using DJGPP, as a learning
experience for me at least.
I took a hint last week from Eli, and decided that I should rewrite
the screen.c module using <conio.h> functions. I had a little time
this weekend to read up on the info pages of the <conio.h> functions.
And I encountered a seemingly trivial problem that I don't understand.
I was writing a "hello, conio" program in DJGPP v2b3 when I found this
problem:
#include <conio.h>
main() {
window(10, 10, 62, 3);
gotoxy(10, 2);
cputs("Hello, Conio!");
}
This program is supposed to output the string "Hello, Conio!" to the
screen starting from the position (19, 11) and go right-wards.
What I'm getting is a single character "H" at position (19, 11). The
rest of the string is shifted up by 1 line (starts at (20, 10) and
then goes right-wards.)
What had I overlooked?
--
Weiqi Gao
weiqigao AT crl DOT com
- Raw text -