Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

showkey equivalent on mac os x?

I'm debugging an emacs keyboard binding on my mac (C-/ to undo, if you're curious), and I came across a suggestion on EmacsWiki that I could use "showkey" to find the scancode. But it looks like a GNU/Linux-only kinda thing. Didn't find it on MacPorts. Anyone know of an alternative or something I'm missing?

like image 297
philo Avatar asked Aug 12 '10 01:08

philo


People also ask

What's the control button on Mac?

Instead, the Macintosh equivalent of the Windows Ctrl key is the ⌘ key. It's right next to the space bar. It's pronounced “command,” although novices can often be heard calling it the “pretzel key,” “Apple key,” or “clover key.” Most Windows Ctrl-key combos correspond perfectly to ⌘-key sequences on the Mac.


2 Answers

Key Codes may be what you're looking for generally, even if you're out of luck with C-/.

The emacs-app port works well if you need to escape from Terminal.app

like image 184
Kirk Kelsey Avatar answered Sep 20 '22 00:09

Kirk Kelsey


Showkey's home page is http://catb.org/esr/showkey/.

FYI, if you're using Terminal.app, there's something of a known issue that C-/ is broken and doesn't get sent through to underlying applications. iTerm.app doesn't have that issue.

like image 35
durin42 Avatar answered Sep 23 '22 00:09

durin42