|
|
How to paste Escape sequences in Terminal's preferences
I can get none of this to work. I'm using tcsh. Does the terminal type matter? I'm using ansi. All I want is to make get editing to work like it does in all correct Mac apps: option-left and -right for prev and next work, and forward delete to map to ^D.
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:
How to paste Escape sequences in Terminal's preferences
Make sure you've set up the following
Then the line below will get your sequence on the clipboard
This can be made to work in tcsh.
|
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.09 seconds |
|