Move the Terminal cursor position with the mouse
Authored by: awado on Jan 15, '14 10:10:47AM

But it works with nano (OS X 10.8.5)! Nice. And clicking anywhere above the prompt will navigate in the command line buffer. Seems somehow not very handy, because it depends on the distance to the prompt where it gets you.

Move the Terminal cursor position with the mouse
Authored by: awado on Jan 17, '14 11:51:09AM

In addition to a tip mentioned there: "To reuse text you&#8217;ve already typed ..., just highlight it using the mouse then hit Shift+Command+V &#8212; no need to copy it first to the clipboard."

You can also just drag the highlighted text a few pixels, without pressing any key. It will be inserted at the prompt position. This drag&drop also works across applications. For example, when there is a PDF or a web page containing some code, you only have to highlight the code and drag it onto the terminal window. Even works with newline for RETURN.

Move the Terminal cursor position with the mouse
Authored by: jazzbri on Jan 17, '14 08:29:51AM

Holy cow, how did I not know this? I whipped up a Keyboard Maestro that will automatically insert the cursor when you click inside the Terminal... no need to push 'option' this way. You can find the macro here if you're interested:

Move the Terminal cursor position with the mouse
Authored by: keirthomas on Jan 25, '14 06:51:34AM

To be fair all the Macworld guys were working hard this week for the big event yesterday -- the 30th birthday of the Mac.

Even so, if Macworld is serious about this site it should have a dedicated editor. I'm not sure if Crarko was paid for the stint he used to do but I doubt anybody's going to do a good job unless they're paid for it.

Move the Terminal cursor position with the mouse
Authored by: baltwo on Jan 29, '14 12:57:13PM

Then, there are these:

Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Letís you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names

Move the Terminal cursor position with the mouse
Authored by: robleach on Jan 30, '14 09:37:10AM

I assume these must be shell-specific, because in tcsh, I note these differences:

^w - Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
^d - End of input character (e.g. use if running something like `cat > file`)
option-left-arrow - Move cursor backward one word on the current line
option-right-arrow - Move cursor forward one word on the current line
(option-f & option-b insert special characters)

I tried these in bash and also note some differences:

option-left-arrow - Move cursor backward one word on the current line
option-right-arrow - Move cursor forward one word on the current line
(option-f & option-b insert special characters)
^d - deletes characters forward

Move the Terminal cursor position with the mouse
Authored by: keirthomas on Jan 31, '14 12:21:09AM

Yeah, those shortcuts he gave are pretty much BASH/emacs. People can just look-up those online if they want clues as to shortcuts (or just look in the man pages), and they're not OS X-specific, obviously.