🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #380

How do I recognize arrow keys with getch() in C?

#380
From: Stephen Su
Date: Tue, 11 Aug 1992 18:48
8 lines
703 bytes
I am using Borland C++ to try and write a simple text viewer and would like
to use the up and down arrow keys and the PgUp/PgDn/Home/End keys for various
operations.  How can I recognize the keys with getch(), or am I on the wrong
track?

Thanks in advance.

thesame@engin.umich.edu    Stephen.Su@um.cc.umich.edu
Technical Details
Message-ID: <S9a-CYB@engin.umich.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!thesame

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!thesame
From: thesame@engin.umich.edu (Stephen Su)
Subject: How do I recognize arrow keys with getch() in C?
Message-ID: <S9a-CYB@engin.umich.edu>
Date: Tue, 11 Aug 92 14:48:08 EDT
Organization: University of Michigan Engineering, Ann Arbor
Distribution: usa
Nntp-Posting-Host: aphid.engin.umich.edu
Lines: 8