LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 08-06-2009, 02:51 AM   #1
nathan
LQ Newbie
 
Registered: Aug 2009
Location: california
Distribution: fedora
Posts: 21

Rep: Reputation: 15
how to get ascci values of home/de/ins/pageup/pagedwn keys


Hi,

I am using usb HID keypad ( mini keypad)
If i enable numlock i am able to scan digits 0 to 9,
but how can i detect key scan codes of pageup/page down/ left arrow right arrow /end/home/
when i am trying with scanf func, on console its displayig like this

home key: ^[[1~
uparrow : ^[[A
left arrow : ^[[D
right arrow :^[[C

end key: ^[[4~
del key: ^[[3~
insert key: ^[[2~

how to read ascii values of these keys in C language

I want map events to these keys.

Thanks in advance

nathan

Last edited by nathan; 08-06-2009 at 03:47 AM.
 
Old 08-06-2009, 03:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to detect key codes of home/end/pageup/pagedwn/de/ insert keys nathan Programming 6 08-10-2009 07:13 AM
SSH to debian box doesn't transmit ins, home, page up etc... deej_1977 Debian 6 09-20-2006 04:55 AM
Home / End keys in aterm Vgui Linux - General 4 08-11-2005 12:59 PM
ins,end,delete keys are mischevious lnxlover Linux - Software 2 03-05-2005 02:24 AM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration