Go Back   MacRumors Forums > Archive > Archives of Old Posts > MacBytes.com News Discussion

 
 
Thread Tools Search this Thread Display Modes
Old Sep 29, 2005, 01:29 AM   #1
MacBytes
macrumors bot
 
Join Date: Jul 2003
OS X Terminal keystroke shortcuts




Category: Tips and How To's
Link: OS X Terminal keystroke shortcuts

Posted on MacBytes.com
Approved by Mudbug
MacBytes is offline   0
Old Sep 29, 2005, 02:57 AM   #2
SpinUp
macrumors newbie
 
Join Date: Nov 2004
Location: Canada
handy

I will hereby use ctrl-A and ctrl-E to go to the end and beginning of a line. Thanks for the tip!
SpinUp is offline   0
Old Sep 29, 2005, 05:17 AM   #3
iMeowbot
macrumors 601
 
iMeowbot's Avatar
 
Join Date: Aug 2003
There are more shortcuts in there that might be nice to know about if you spend a lot of time in bash.

To see a list of what's available, you can use the command bind -p | less If you're not familiar with emacs conventions, \M means to press esc, \C means the control key.

If you're one of those hopeless sorts who think that vi is a good thing, set -o vi will give you your familiar, inferior key bindings. set -o emacs will put things right when you come to your senses.
iMeowbot is offline   0
Old Sep 29, 2005, 06:14 AM   #4
AlmostThere
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
You can also do a Xwindows-type highlight and paste in the Terminal (highlight any text and then middle click to put paste it to the command line). Note, this is NOT stored to clipboard (i.e. only works when text is highlighted).

But, what would be really nice to know, and something I hoped the article would address, is why half of these work in any TextField but half don't (i.e. the Esc based ones generally don't). Try Ctrl-U or Ctrl-K in the address bar in Safari, or the submission box.

Anyone know how to get the full functionality in all text fields?

(OK, prompted a google which turned up this http://www.gnufoo.org/macosx/macosx.html, which am currently investigated)

Last edited by AlmostThere; Sep 29, 2005 at 06:19 AM.
AlmostThere is offline   0
Old Sep 29, 2005, 08:49 AM   #5
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
Quote:
Originally Posted by AlmostThere
But, what would be really nice to know, and something I hoped the article would address, is why half of these work in any TextField but half don't (i.e. the Esc based ones generally don't). Try Ctrl-U or Ctrl-K in the address bar in Safari, or the submission box.

Anyone know how to get the full functionality in all text fields?
Well I'd say it is in part becuase of the Unix backside stuff. I know when I use the pico editor in telnet sessions the same ctrl+key commands are the same as the ones this page showed. I never tried any esc+key type shortcuts. I often forget I have an esc key. As far as some of the commands working in text fields I would assume it has something to do with Apple's Human Interface Design Guidelines that may automatically carry over certain abilities like the ctrl+key shortcuts. It could also be programmer dependent and you only get those abilities if the programmer decides to put them their.

I haven't yet done any GUI programming for Mac so only speculating, but hey it sounds logical right? lol
angelwatt is offline   0
Old Sep 29, 2005, 02:24 PM   #6
Santaduck
macrumors 6502a
 
Santaduck's Avatar
 
Join Date: Oct 2003
Location: Honolulu
Send a message via ICQ to Santaduck Send a message via AIM to Santaduck
Quote:
Originally Posted by AlmostThere
You can also do a Xwindows-type highlight and paste in the Terminal (highlight any text and then middle click to put paste it to the command line). Note, this is NOT stored to clipboard (i.e. only works when text is highlighted).
ahhh, that was what I was going to add too, esp. in this era of the Mighty Mouse.
Santaduck is offline   0
Old Sep 29, 2005, 04:07 PM   #7
nagromme
macrumors G5
 
nagromme's Avatar
 
Join Date: May 2002
Is it a Cocoa vs. Carbon thing?
nagromme is offline   0
Old Sep 30, 2005, 03:44 PM   #8
sjk
macrumors 6502a
 
Join Date: May 2003
Location: Eugene
Quote:
Originally Posted by AlmostThere
Anyone know how to get the full functionality in all text fields?

(OK, prompted a google which turned up this http://www.gnufoo.org/macosx/macosx.html, which am currently investigated)
Last week I wrote a few comments related to this topic in a MacOSXHints thread. If anyone's interested, search there for sjk or the comments titled:

Emacs-style key bindings (with a working link to Apple dev page that's broken on the gnufoo site)
key bindings vs. accesskeys (my nit about the control key prefix conflict)
vi vs. emacs bindings (iMeowbot might appreciate that )

Quote:
Originally Posted by nagromme
Is it a Cocoa vs. Carbon thing?
Yep. User-redefinable key bindings are part of Cocoa's text system.
sjk is offline   0


 
MacRumors Forums > Archive > Archives of Old Posts > MacBytes.com News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Change Monitor Source with keystroke -BigMac- Mac Pro 0 May 16, 2014 11:04 AM
Mac Keystroke Encryption Software? projectmac Mac Applications and Mac App Store 1 Feb 11, 2014 10:35 PM
Weird keystroke problem Hookemfins Mac Basics and Help 3 Aug 28, 2013 10:12 PM
Keystroke application dumlovesyou Mac Programming 2 Nov 25, 2012 05:08 PM
How to activate notifications with keystroke Drag'nGT MacBook Pro 4 Aug 5, 2012 09:30 PM

Forum Jump

All times are GMT -5. The time now is 03:09 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC