Rxvt: Difference between revisions

From EggeWiki
mNo edit summary
Line 39: Line 39:
set t_Co=256
set t_Co=256
</geshi>
</geshi>
== terminfo ==
When I ssh to a Solaris I get this message when starting up vim:
<geshi>
E558: Terminal entry not found in terminfo
'cygwin' not known. Available builtin terminals are:
    builtin_riscos
    builtin_amiga
    builtin_beos-ansi
    builtin_ansi
    builtin_pcansi
    builtin_win32
    builtin_vt320
    builtin_vt52
    builtin_xterm
    builtin_iris-ansi
    builtin_debug
    builtin_dumb
defaulting to 'ansi'
</geshi>
This is because Solaris doesn't know about my terminal.  To fix, this I can change my TERM, or add cygwin to the terminfo.
On Cygwin, copy this directory to Solaris: '''/usr/share/terminfo/c/cygwin'''.  If your Solaris install doesn't have a terminfo directory, or you can write to it, the solution is to copy the entire Cygwin terminfo directory, and then set the TERMINFO environment variable to point to this directory. 
Currently, my rxvt setup sets these terminals:
<geshi lang="bash">
$ env | grep TERM
TERM=xterm
COLORTERM=rxvt-xpm
</geshi>


[[Category:Cygwin]]
[[Category:Cygwin]]

Revision as of 00:07, 23 July 2009

rxvt is a great terminal emulator for Windows. I much prefer it over Putty, and especially the default cygwin command prompt. It's an optional cygwin package, and I highly recommend using it.

Here's some settings I use to tweek my default rxvt terminal.

My ~/.Xdefaults file:

rxvt*title:             Bash
rxvt*background:        darkslategray
rxvt*foreground:        wheat
rxvt*scrollBar_right:   true
rxvt*colorBD:           1
rxvt*font:              courier
rxvt*saveLines:         10000
rxvt.backspacekey:      ^?

XTerm*saveLines:        5000
XTerm*scrollBar:        true
XTerm*rightScrollBar:   true

My cygwin shortcut:

C:\cygwin\bin\rxvt.exe -sl 2000 -fn courier -sr -e bash.exe --login -i

Another useful rxvt trick I learned is using the shift-keypad-plus and shift-keypad-minus to change the font sizes of an open window. You can open a new window with a big font like this:

rxvt -fn 'Lucida Console-24''

vim

Be sure to add set t_Co=256 to ~/.vimrc below 'set nocompatible' <geshi> set nocompatible " We're running Vim, not Vi! set t_Co=256 </geshi>

terminfo

When I ssh to a Solaris I get this message when starting up vim: <geshi> E558: Terminal entry not found in terminfo 'cygwin' not known. Available builtin terminals are:

   builtin_riscos
   builtin_amiga
   builtin_beos-ansi
   builtin_ansi
   builtin_pcansi
   builtin_win32
   builtin_vt320
   builtin_vt52
   builtin_xterm
   builtin_iris-ansi
   builtin_debug
   builtin_dumb

defaulting to 'ansi' </geshi>

This is because Solaris doesn't know about my terminal. To fix, this I can change my TERM, or add cygwin to the terminfo.

On Cygwin, copy this directory to Solaris: /usr/share/terminfo/c/cygwin. If your Solaris install doesn't have a terminfo directory, or you can write to it, the solution is to copy the entire Cygwin terminfo directory, and then set the TERMINFO environment variable to point to this directory.

Currently, my rxvt setup sets these terminals: <geshi lang="bash"> $ env | grep TERM TERM=xterm COLORTERM=rxvt-xpm </geshi>