delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/03/17:23:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Hannu E K Nevalainen (garbage mail)" <garbage_collector AT telia DOT com>
To: "sferriol" <sylvain DOT ferriol AT imag DOT fr>,
"Andrew Markebo" <andrew DOT markebo AT telia DOT com>, "cygwin" <cygwin AT cygwin DOT com>
Subject: RE: shell display latin char. like this '\351'
Date: Sat, 3 May 2003 23:21:53 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEAEECCPAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <3EAFF8F5.9090401@imag.fr>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200

------=_NextPart_000_007C_01C311CA.C83FDB80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of sferriol
--8<--
> when i use ls in a cygwin shell , all directories that have latin
> characters are displayed with a '?' instead.
>  > ls
>  > ?????.dir
>
> and when i type funny characters , it displays '\351' or '\352' ,.......
>
> sylvain

 Sylvain, please remove your digital signature - your messages get signalled
as "untrusted" by Outlook.
 I *won't* set you up as trusted whatever you say.

Back on subject:
 The attached files might help you a bit.
They have 'enabled' my eight bit chars.

.Xdefaults - makes rxvt behave in a sane manner (IMO ;-)
.inputrc - enables eight bit clean stuff.
.profile - replaces "/bin/ls" with a shell function that displays 8-bit
chars.

NOTE: These are verbatim copies of my files as they are right now;
You WILL have to remove/change some lines in .profile .

I do expect it to be possible to move the key bindings for Home and End keys
for rxvt from .inputrc into .Xdefaults - but I have not yet figured that
out. They are rxvt/X11/W11 dependent so they do not belong in .profile IMO.

IMHO this one is useful too...
Assuming win98 and at least 1024x768 pixels on screen:

*) Change the "Program to run" item in the cygwin.bat properties
     to read something like this.
    C:\WINDOWS\COMMAND.COM /E:30720 /c C:\Program\cygwin\cygwin.bat
*) Change cygwin.bat properties to make it run in a "Minimized" window.
*) change the last line in CYGWIN.BAT to read
    bash -c 'rxvt -e /usr/bin/bash --login -i'

HTH

/Hannu E K Nevalainen, Mariefred, Sweden

--END OF MESSAGE--

------=_NextPart_000_007C_01C311CA.C83FDB80
Content-Type: application/octet-stream;
	name=".inputrc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename=".inputrc"

#=0A=
# INPUTRC - Preferences by=0A=
# Hannu E K Nevalainen=0A=
#=0A=
=0A=
# DON'T EVER *BEEP* AT ME!=0A=
set bell-style visible=0A=
=0A=
# Eight-bit transparency please,=0A=
# we're *way* beyond anything else=0A=
set convert-meta off=0A=
set input-meta on=0A=
set output-meta on=0A=
=0A=
# The least bad...=0A=
set keymap emacs=0A=
=0A=
# =0A=
set enable-keypad on=0A=
=0A=
=0A=
#--------------------------=0A=
# Name completion/expansion=0A=
#=0A=
=0A=
# set show-all-if-ambiguous on=0A=
=0A=
# User homedir name expansion=0A=
set expand-tilde off=0A=
=0A=
# Append / on ALL dirnames at completion=0A=
set mark-directories on=0A=
set mark-symlinked-directories on=0A=
=0A=
# Match on ALL files=0A=
set match-hidden-files on=0A=
=0A=
=0A=
#---------------=0A=
# Keybindings...=0A=
#=0A=
=0A=
# DEL key in bash=0A=
"\e[3~": delete-char=0A=
=0A=
#insert-key=0A=
"\M-[2~": paste-from-clipboard # Insert=0A=
=0A=
# Home in rxvt=0A=
"\e[7~": beginning-of-line=0A=
# End in rxvt=0A=
"\e[8~": end-of-line=0A=

------=_NextPart_000_007C_01C311CA.C83FDB80
Content-Type: application/octet-stream;
	name=".profile"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename=".profile"

export LESSCHARSET=3Dlatin1=0A=
=0A=
mount -f -b '\\FUJITSU1' /F1 &=0A=
mount -f -b '\\FUJITSU2' /F2 &=0A=
=0A=
#source .rm_bc_paths=0A=
export PATH=3D$PATH:~/scripts:~/rexx:~/bin=0A=
=0A=
# ----------------=0A=
#  -- alias'es --=0A=
# ----------------=0A=
alias md=3Dmkdir=0A=
=0A=
=0A=
# -----------------------=0A=
#  -- shell functions --=0A=
# -----------------------=0A=
ls () {=0A=
 command ls \=0A=
	--show-control-chars	\=0A=
	--color			\=0A=
	--classify		\=0A=
	--no-group		\=0A=
	 $@;=0A=
 }=0A=
=0A=
=0A=
if echo "$SHELL " | grep -i -c command.com >/dev/null=0A=
then=0A=
  export SHELL=3D=0A=
  echo -e "\n\"command.com\" found in \$SHELL, \$SHELL contents removed."=0A=
fi=0A=
=0A=
if [ -f /cygwin.mnt ]=0A=
then=0A=
  # this one contains last mounted volumes=0A=
  source /cygwin.mnt=0A=
fi=0A=
=0A=

------=_NextPart_000_007C_01C311CA.C83FDB80
Content-Type: application/octet-stream;
	name=".Xdefaults"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename=".Xdefaults"

=0A=
Rxvt.background:        black=0A=
Rxvt.foreground:        grey=0A=
Rxvt.visualBell:        true=0A=
=0A=
Rxvt.keysym.7e37:	^A=0A=
Rxvt.keysym.7e38:	^E=0A=
=0A=
Rxvt.meta8:		true=0A=
XTerm.saveLines:	6000=0A=
XTerm.scrollBar_right:	true=0A=
XTerm.scrollColor:	#c5c0a5=0A=
=0A=
XTerm.scrollTtyOutput:	false=0A=
XTerm.scrollTtyKeypress: true=0A=
=0A=
# Allow four columns of ls output=0A=
# ...nicely positioned on 1024x768 pixels=0A=
XTerm.geometry:		112x56+20+20=0A=
XTerm.font: Lucida Console-12=0A=
=0A=
# Peculiar char spacing=0A=
# XTerm.font: Verdana-13=0A=


------=_NextPart_000_007C_01C311CA.C83FDB80
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_007C_01C311CA.C83FDB80--

- Raw text -


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