|
|
How to paste Escape sequences in Terminal's preferences
I've tested the hint and seems to only work with bash shell. Also, you need to do 'echo -ne "\e[5C"|pbcop' in bash since the -ne argument doesn't work with tcsh.
How to paste Escape sequences in Terminal's preferences
Yes, in bash "
\e" is translated to escape by the shell before it is parsed by the command you run (in this case echo). In tcsh you just type control-v and then type whatever special character you like. This is because tcsh by default uses escape sequences to edit text on the command line (esc-b is backward-word for instance -- see the tcsh man page for the "bindkey" built-in or type "bindkey" by itself to get a dump of all bindings.
So please note that this hint is bash-specific and sould read:
"How to bind keys for editing the command line in
How to paste Escape sequences in Terminal's preferences
Is there a way in tcsh to do word forward / back or line begin / end? I'd truly like those features. I looked at the tcsh docs on bindkey and didn't see those as options.
How to paste Escape sequences in Terminal's preferences
For tcsh, put the following in your .tcshrc: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|