delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/11/14:19:17

X-Spam-Check-By: sourceware.org
Date: Sun, 11 Jun 2006 14:18:59 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "gabriele DOT mailing AT rvmgroup DOT it" <gabriele DOT mailing AT rvmgroup DOT it>
cc: cygwin AT cygwin DOT com
Subject: Re: rxvt usage issues under windows xp
In-Reply-To: <448C2142.8080905@rvmgroup.it>
Message-ID: <Pine.GSO.4.63.0606111407270.25353@access1.cims.nyu.edu>
References: <448C2142 DOT 8080905 AT rvmgroup DOT it>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Sun, 11 Jun 2006, gabriele.mailing wrote:

> Hello,
> I've switched time ago from the standard cygwin.bat (cmd.exe) window, to
> rxvt. It's miles away from the m$ command line, but I still have some
> issue.
>
> First of all, here is my launch command taken from the web with some
> tweaks: C:\cygwin\bin\rxvt.exe -bg black -fg white -si +sk -sw -sr -sl
> 65535 -fn "Courier New-23-bold" -ls -e /usr/bin/bash --login -rcfile
> ~/.profile
>
> And in my .bashrc I have:
> ...
> export CYGWIN="codepage:oem tty binmode title"

First, "codepage:oem", "tty", and "title" only make sense for the Cygwin
console.  You don't need them for rxvt at all.  Second, "tty" should be
set before the first Cygwin process is ever invoked -- setting it in
.bashrc is way too late.  If you want the setting to be available to all
processes, set CYGWIN in the global system environment instead.

> export TERM="rxvt-cygwin-native"

And this is another problem -- this will bite you when you try using ssh.
Rxvt already sets the TERM to "xterm" by default, and will set it to
whatever you want with the "-tn" command-line option.  I suggest adding
"-tn rxvt-cygwin-native" to your rxvt command line instead of the above
.bashrc line.

> ...
>
> Now the issues:
>
> #1
> A-I want to scroll back manually, without resetting position, event if there
> is something scrolling on the screen. So I have setup -si -sw.
> B-But I want to go on the prompt line on key press. So I have setup +sk.
> A is working fine, B not. Why ?

Because you've misread the manpage.  "+sk" turns OFF "scroll-on-keypress".
You want "-sk" instead.  This is not Cygwin-specific.

> #2
> I used Windows Courier-New font, because it correctly show up character
> (for example, midnight commander) in other applications, like Putty.
> In rxvt, it doesen't work well. I've tried "Lucida Console" too, but the
> result was the same. Why ?

It's a Windows codepage issue.  rxvt uses the system-default codepage.
You'll probably need a customized font with the right characters in the
right places...
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

- Raw text -


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