Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How use Unicode characters in shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How use Unicode characters in shell scripts
Authored by: mingo on Jan 09, '06 05:53:02PM

This post reminds that I have wondered how to get Terminal and tcsh to accept accented characters. e.g. option-e e, for a e-acute? I have played around with Window Settings/Display/Character Set Encoding in the Terminal Inspector but this did not appear to have an effect.



[ Reply to This | # ]
How use Unicode characters in shell scripts
Authored by: david-bo on Jan 10, '06 03:43:03PM

You need a newer version of tcsh. The version included in 10.4 does not (have good) support (for) accented characters.

---
http://www.google.com/search?as_q=%22Authored+by%3A+david-bo%22&num=10&hl=en&ie=ISO-8859-1&btnG=



[ Reply to This | # ]
How use Unicode characters in shell scripts
Authored by: Christoph on Jan 11, '06 04:53:25AM
I had the same problem with bash. As it uses the readline library the solution were the following entries in the readline configuration file $HOME/.inputrc:

set input-meta on
set output-meta on
set convert-meta off

Other useful settings are

# suppress bell ringing
set bell-style none

# case insensitive TAB-completion
set completion-ignore-case on

# enable Delete/Home/end key in xterm and iTerm 
# (does not work in Terminal.app though)
"\e[3~": delete-char 
"\e[1~": beginning-of-line
"\e[4~": end-of-line


[ Reply to This | # ]