delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/06/00:25:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <informer AT ns1 DOT m2000 DOT idv DOT tw>
To: cygwin AT cygwin DOT com
cc: hk2good AT yahoo DOT com DOT hk
Subject: Chinese input in Cygwin (fwd)
Message-ID: <Pine.LNX.4.21.0107061224300.4863-100000@ns1.m2000.idv.tw>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019