Mail Archives: cygwin/2001/07/06/00:25:49
FYI
---------- Forwarded message ----------
Date: Mon, 2 Jul 2001 11:46:16 +0800
From: Topas <yrwang AT cc DOT nctu DOT edu DOT tw>
To: pofeng AT linux DOT org DOT 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/
- Raw text -