Mail Archives: cygwin/2006/06/11/14:19:17
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 -