Link to home
Start Free TrialLog in
Avatar of Sebastian_Strauss
Sebastian_Strauss

asked on

ASCII code for Pause/Break ?

I really need the ASCII code for the Pause/Break key.

ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On keyboards with computers attached or integrated (such as all modern PCs), the BREAK key (if present) likely is translated from a keyboard scan code into some ASCII code (such as CTRL-C), rather than producing an actual BREAK line condition. If an actual BREAK signal was to be sent out a serial port, this would have to be done by a special instruction to the tty/serial driver of that operating system. (POSIX environments use an ioctl() call to do this.)

From http://nemesis.lonestar.org/reference/telecom/codes/ascii.html
ctrl c is same as ETX - 0x03
Avatar of callrs
callrs

No such thing. ASCII is a set of symbols. A key can be programmed to output ANY of the ASCII codes. So keys & ascii codes are two separate things.

Do you mean SCAN CODE for Pause/Break? See:
http://www.quadibloc.com/comp/scan.htm     Scan Codes Demystified  (Has a scan code chart)
http://www.pcguide.com/ref/kb/groupSpec-c.html     Special Keys (Scan code for Pause/Break)

ASCII codes:
http://jimprice.com/jim-asc.htm         ASCII Chart and Other Resources
http://en.wikipedia.org/wiki/ASCII      ASCII - Wikipedia, the free encyclopedia

All:
http://www.jpsoft.com/help/index.htm?codesref.htm ASCII, Key Codes and Key Names
callrs,

> ASCII is a set of symbols. A key can be programmed to output ANY of
> the ASCII codes. So keys & ascii codes are two separate things.
I disagree ... ASCII or for that matter any coding is an association between symbols and values. Associating any key with any value defeats the entire purpose of having a coding
http://webopedia.com/TERM/A/ASCII.html     What is ASCII? - A Word Definition From the Webopedia Computer Dictionary
"Acronym for the American Standard Code for Information Interchange. Pronounced ask-ee, ASCII is a code for representing English characters as numbers, with each letter assigned a number from 0 to 127. For example, the ASCII code for uppercase M is 77. Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another. "

I can program keys to output any character I want. In fact the count of keyboard layouts are MANY when you consider international languages & their varients. You can program your 'A' key to send any valid signal that you want to, and even create your own keyboard layout, personally for you.

The keyboard is just an easily reconfigured map. There is no ASCII code for the BREAK key just as you can't say that the 'Z' key has ASCII value of 122. It's the Z SYMBOL that has ASCII value of 122. That symbol is mapped to a certain key #. I bet on yours its mapped to the 'Z' key, but on mine it's mapped to the '/' key! lol.

------
Maybe what's asked for is the VIRTUAL KEY CODE
For the PAUSE key it's number 19
http://api.farmanager.com/en/winapi/virtualkeycodes.html     Virtual key codes
Hi callrs,

> You can program your 'A' key to send any valid signal that you want
> to, and even create your own keyboard layout, personally for you.
Quite true ... However, for an encoding the mapping between symbol and value remains fixed .... and A key producing Z does not seem to be very appealing to me

Cheers!
sunnycoder
LOL, now this gets fun. : )
Post a question in the Lobby about why I would have my / key producing Z.\
: )

You know I have multiple uses for the keys? Not just for typing letters. But that's another story.

Even for an encoding (meaning keyboard layout?), the mapping between scan codes & ASCII characters is not fixed, but programmable, and very often necessary. It may be more fixed between scan codes & virtual key codes (I gotta re-look this up for details, but studied it well few years ago.)
Please split.