🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #454

Re: ASCII Codes...

#454
From: Nik Synytskyy
Date: Thu, 17 Sep 1998 00:00
28 lines
1475 bytes
John Skilbeck wrote in message <6ton52$ip0$1@news3.cableinet.co.uk>...
>I am having problems detecting whether a cursor key is pressed or certain
>capital letters within TP 7.0.
>
>For example, the UP arrow on the keyboard is ASCII code 0 72, 'H' is ASCII
>code 72.
>
>Is it possible to detect the difference between these keys in Pascal? If
so,
>how??
>
>Any suggestions would be much appreciated.
>
>Thanks,
>
>John.
>
>


The general idea is (as all the programs listed above demonstrate) that the
arrow keys put not one, but TWO characters into the keyboard buffer, the
first always being #0.  If you want to check if a direction key is pressed,
look for #0, and then the code of the direction key.


Nik.
Technical Details
Message-ID: <yT_L1.1904$VW6.13569796@news.magma.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6ton52$ip0$1@news3.cableinet.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,6641efc813030989
X-Google-Attributes: gid111659,public
X-Google-Thread: 10cc59,6641efc813030989
X-Google-Attributes: gid10cc59,public
X-Google-Thread: 108ebd,6641efc813030989
X-Google-Attributes: gid108ebd,public
From: "Nik Synytskyy" <nikita@NOSPAMmondenet.com>
Subject: Re: ASCII Codes...
Date: 1998/09/17
Message-ID: <yT_L1.1904$VW6.13569796@news.magma.ca>
X-Deja-AN: 391918439
References: <6ton52$ip0$1@news3.cableinet.co.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Magma Communications Ltd.
NNTP-Posting-Date: Wed, 16 Sep 1998 22:56:30 EDT
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal,borland.public.turbopascal