Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Which numerical values do the F-Keys ( F[1-12]) and the Arrow-keys have

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.34 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifdef __unix__
  2.    #define F1 'some number'
  3.    /* ... */
  4.    #define ARROW_UP 'some other number'
  5. #elif __WIN32__ || MSDOS /*whatever*/
  6.    #define F1 'something'
  7.    /* ... */
  8.    #define ARROW_UP 'something different'
  9. #endif
  10.        
  11. % read x; echo $x | od -c --
  12. ^[[15~
  13. 0000000  033   [   1   5   ~  n                                        
  14. 0000006