Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few questions:

1: Which key codes are used in Terminal? DEC right?

2: How do I find the values of all my keys? Any program I have found to do it for you won't work on function keys which is what I want. Eventually, I want to be able to change my key lighting from Terminal using key press commands.

share|improve this question
up vote 1 down vote accepted

Some quick research turned up a tool called Except which can be used to automate tasks in the terminal (like sending key codes), though the difficulty level of using it may be beyond what you want. Check out this SO question for a few more (less likely to work) options.

share|improve this answer
@typoking 1. Aren't there diffrerent codes for letters? DEC, HEX, and ASCII? 2. Ok so for example, F11 is /1. How do I mkake it press that key? Tutorial link one didn't work, and link two was WAY beyond me. – JShoe Apr 7 '11 at 2:59
Got the first link working, ALSO over my head. I just want to be able to activate any given key. How would I do that? – JShoe Apr 7 '11 at 3:10
@JShoe Are you saying that certain keys do not work in your terminal? What exactly do you mean that you want to "activate" any given key? – ubiquibacon Apr 7 '11 at 3:19
@typoking I want to be able to type some code into terminal and have it 'press' a key. So if I have text edit open and I run something in terminal it will type something into text edit. Or if I want it to press 'command r' to refresh a page, for press f10 to increase keyboard lighting. Is this possible? – JShoe Apr 7 '11 at 3:21
@JShoe, haha, ok. I thought you were trying to remap your keys. See updated answer. You probably will not like it. – ubiquibacon Apr 7 '11 at 3:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .