Re: how to macro define these "ESC" charset like "\n" and compare with char?
- From: "Lew Pitcher" <lpitcher@xxxxxxxxxxxx>
- Date: 20 Jun 2006 11:05:25 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
key9 wrote:
Hi all
I want to use
#define KEY_RETU "\n"
#define KEY_BKS "\b"
No, you don't. You've already discovered why.
and use[snip]
int ch_;
switch(ch_){
case KEY_RETU :
so how to define it?
Try
#define KEY_RETU '\n'
...
int ch;
switch(ch)
{
case KEY_RETU:
...
HTH
- --
Lew Pitcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12
iD8DBQFEmDjZagVFX4UWr64RAjIsAKDAEVQoLrUfrf18gZ6T9DTHBVllKgCgnDTY
Rp9LYXGGDURpAOvmKLAFmXk=
=85fO
-----END PGP SIGNATURE-----
.
- References:
- Prev by Date: how to macro define these "ESC" charset like "\n" and compare with char?
- Next by Date: Re: which head file define the keyboard scancode?
- Previous by thread: how to macro define these "ESC" charset like "\n" and compare with char?
- Index(es):
Relevant Pages
|