X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE:  Re: font
Date: Fri, 2 Dec 2005 09:23:59 -0500
Message-ID: <94BF3137C62D3E4CAED7E97F876585F0D0388C@pauex2ku08.agere.com>
From: "Williams, Gerald S \(Jerry\)" <gsw@agere.com>
To: <cygwin@cygwin.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jB2EOHtu027261

Andrew DeFaria wrote:
> Too many things? Other than I/O (which I agree is important)
> of certain Windows only programs what else does rxvt do wrong?

This is getting a bit off-topic, but one thing that
bothers me is "normal" resizing under Windows. I'd
rather it behave like it does under X (and command
windows do under Windows), jumping to even multiples
of lines & columns. I use a tiny zsh script to clean
up (with the added benefit of allowing you to resize
via command line):

-----CUT-----
#!/usr/bin/zsh

# Resize RXVT window to an exact number of LINES & COLUMNS
#
# Usage:
#   fs [LINES] [COLUMNS]
#
# Where LINES or COLUMNS may be:
#
#   <number>            - specify exact value
#   (+|-|*|/)<number>   - value relative to current setting (+1, /2,
etc.)
#   <anything else>     - use current setting (current text region)
#
# 'fs' by itself trims the current window to exactly match its text
region
#
# E.g.:
#   Trim to fit text: fs
#   Set width to 132: fs . 132
#   Set to 24x80:     fs 24 80
#   Add one line:     fs +1
#   Double the width: fs . '*2'  # must quote '*' from the shell

case $1 in
    +[0-9]*|-[0-9]*|\*[0-9]*|/[0-9]*)   ((L = $LINES $1)) ;;
    [0-9]*)                             L=$1 ;;
    *)                                  L=$LINES ;;
esac

case $2 in
    +[0-9]*|-[0-9]*|\*[0-9]*|/[0-9]*)   ((C = $COLUMNS $2)) ;;
    [0-9]*)                             C=$2 ;;
    *)                                  C=$COLUMNS ;;
esac

print $'\e[8;'"$L;${C}t"
-----CUT-----

gsw


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


