From: iam AT not DOT you (Ken Power) Newsgroups: comp.os.msdos.djgpp Subject: Re: ncurses Message-ID: <38d91426.25207548@news.mysolution.com> References: <8ba1va$943$1 AT nnrp1 DOT deja DOT com> X-Newsreader: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 48 NNTP-Posting-Host: 216.37.18.72 X-Trace: tw11.nn.bcandid.com 953751111 216.37.18.72 (Wed, 22 Mar 2000 11:51:51 MST) NNTP-Posting-Date: Wed, 22 Mar 2000 11:51:51 MST Organization: bCandid - Powering the world's discussions - http://bCandid.com Date: Wed, 22 Mar 2000 18:51:51 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You can use pdcurses with DJGPP (it also compiles under UNIX, windows, etc) to do this. short example (untested): #include #include using namespace std; int main() { cout << "Getting one kestroke"<< endl; int c = getch(); return 0; } compile: gxx myfile.cc -lpdcurses Take a look at the curses.h file. All your macros/functions are defined there and fairly understandable. Myself, I found it handy to download the ncruses package (still haven't got it to compile right with DJGPP, version 5 of ncurses anyone?) for the man pages and other documents since pdcurses has strange docs IMHO. Ken Wed, 22 Mar 2000 08:58:24 GMT, in comp.os.msdos.djgpp, wroot AT my-deja DOT com managed to squeak: >Hi, > >How can I read one keystroke from the keyboard (including but >not limited to arrow movements, PgUp, PgDn, Del)? I've heard >it is done with ncurses/curses. If someone could tell me >which function, header file and namespace I should use, I would >appreciate it. > >Wroot > > >Sent via Deja.com http://www.deja.com/ >Before you buy. -------------------------------- Ken Power uncle_wiggly at bigfoot dot com --------------------------------