Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 6 Jul 2001 12:25:05 +0800 (CST) From: Pofeng Lee To: cygwin AT cygwin DOT com cc: hk2good AT yahoo DOT com DOT hk Subject: Chinese input in Cygwin (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII FYI ---------- Forwarded message ---------- Date: Mon, 2 Jul 2001 11:46:16 +0800 From: Topas 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/