This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Chinese input in Cygwin (fwd)
- To: cygwin at cygwin dot com
- Subject: Chinese input in Cygwin (fwd)
- From: Pofeng Lee <informer at ns1 dot m2000 dot idv dot tw>
- Date: Fri, 6 Jul 2001 12:25:05 +0800 (CST)
- cc: hk2good at yahoo dot com dot hk
FYI
---------- Forwarded message ----------
Date: Mon, 2 Jul 2001 11:46:16 +0800
From: Topas <yrwang@cc.nctu.edu.tw>
To: pofeng@linux.org.tw
Subject: Chinese input in Cygwin
For tcsh, you should add following setup in .tcshrc
(or the .cshrc, ...)
.tcshrc
# for 8-bit language
stty cs8 -istrip
stty pass8
setenv LANG C
setenv LC_CTYPE iso_8859_1
unsetenv NOREBIND
bindkey \\e[1~ beginning-of-line
bindkey \\e[3~ end-of-line
For bash, you should modify .bashrc(or .login, ...)
and .inputrc(setup for readline)
.bashrc
# for 8-bit language,
# also ~/.inputrc
# set convert-meta off
# set output-meta on
stty cs8 -istrip
stty pass8
export LANG=C
export LC_CTYPE=iso-8859-1
.inputrc
# This file is read by the 'readline' library
# (the library which bash uses for its command-line editing facility)
$include /etc/inputrc
# for Chinese
set input-meta on
set output-meta on
set convert-meta off
# Make Home work
"\e[1~":beginning-of-line
# Make End work
"\e[4~":end-of-line
# Make Delete work
"\e[3~":delete-char
DEL:backward-delete-char
# Ignore case for the command-line-completion
# functionality.
set completion-ignore-case On
I recompiled the rxvt, so you should set the beginning-of-lne and end-of-line properly.
Yih-Ru Wang
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/