In Linux I can set terminal shortcut like this:
stty intr ^i
But in OS X it doesn't work, I've tried this construction with no success:
stty brkint ^i # why is this illegal option???
How to setup Terminal shortcut in OS X?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityThe command:
stty intr ^i
works exactly the same way on MacOS X as on Linux. Please note here ^i
are 2 characters and not a tab.
On the other hand, the command:
stty brkint ^i
replies:
stty: illegal option -- ^i
because brkint
is a boolean option to stty
and not one with any other following value, and because ^i
considered alone is not a valid option to stty
.
stty intr ^I
orstty intr ^E
both work in Sierra!?