This is the mail archive of the
mailing list for the Cygwin project.
rxvt's actual line width disagreed upon between emacs/bash and stty/echo
- From: Jim Steele <jimsteele at cygwin dot westbrook dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 11 Dec 2002 14:28:07 -0500
- Subject: rxvt's actual line width disagreed upon between emacs/bash and stty/echo
I'm puzzled by a terminal width behavior I'm seeing in rxvt. It feels
like something that should be small and potentially obvious, but my
searches of the ml archives came up dry.
Please pardon the long line widths of this message; they are
intentional to demonstrate the line lengths and wrapping behavior I'm
trying to describe.
rxvt is invoked with:
c:\cygwin\bin\rxvt.exe -bg black -fg white -e bash -l
When I ask stty what it thinks the size is, I'm reassured:
$ stty size
When I echo a long string to the screen, I'm reassured:
$ echo 0123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789
But when I invoke emacs -nw, the lines are "off" by one character in
width, causing a confusing display. Emacs seems to write the first
character of certain lines at the last position of the same line, as
if it thought the tty was only 79 characters wide and was relying on
that fact for placement the first character.
A similar off-by-one effect occurs when I let bash line-wrap lengthy
command input while I'm typing it:
Any diagnosing suggestions will be gratefully received.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html