LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-10-2010, 08:56 AM   #1
eteck
Member
 
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Rep: Reputation: 15
sendkeycode for arrow keys and enter


Hi I thought I could use 0x25 for the down arrow key and 0x0D for the enter key, but it doesn't work.

Any ideas what I ascii char I need to use those keys for /usr/include/rfb/rfbclient.h

I'm using that lib via a python interface to send keycodes to vnc.

Thx.
 
Old 04-10-2010, 09:22 AM   #2
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Believe DnArrw = 0x50 and the enter key is a combination of CR = 0x0D and LF = 0x0A.

Lou

Last edited by LouRobytes; 04-10-2010 at 09:25 AM.
 
Old 04-10-2010, 09:24 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Not sure if they are the same, but /usr/X11R6/include/X11/keysymdef.h defines a down arrow as 0xFF54 and return/enter as 0xFF0D .
 
Old 04-11-2010, 08:07 AM   #4
eteck
Member
 
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Original Poster
Rep: Reputation: 15
keysymdef.h solved it. Thx. FYI: 0xff8d for enter, 0xff54 for down arrow.
 
  


Reply


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 tackle arrow keys during input questsal Linux - General 2 10-21-2008 12:44 PM
Arrow keys not working flamingvan Solaris / OpenSolaris 5 10-03-2006 05:47 AM
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM
VIM and the arrow keys Buto Linux - Software 1 09-16-2004 07:38 PM
Arrow keys in nethack Levitate Linux - Games 3 08-22-2004 11:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:36 PM.

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
Open Source Consulting | Domain Registration