[comp.windows.x] Why doesn't xterm -e rlogin use window size?

petej@ssg0.pharmacia.com (Peter M. Jansson) (08/10/90)

If I issue the command:
	rcmd ssg0 xterm -display ssg2:0

the programs which use the screen size (more, vi, rn) understand the size
of the window.  On the other hand, if I issue:
	xterm -e rlogin ssg0

all program remain convinced that the window is the size defined by the
termcap entry, regardless of the window's actual size.

Why?

Thanks,
	Pete.

mouse@LARRY.MCRCIM.MCGILL.EDU (08/11/90)

> If I issue the command:
> 	rcmd ssg0 xterm -display ssg2:0
> the programs which use the screen size (more, vi, rn) understand the
> size of the window.  On the other hand, if I issue:
> 	xterm -e rlogin ssg0
> all program remain convinced that the window is the size defined by
> the termcap entry, regardless of the window's actual size.

> Why?

Either ssg2 has a broken rlogin or ssg0 has a broken rlogind.[%]  The
rlogin protocol has provisions for passing the terminal size through
the connection; they should be doing so.

The first command works because, of course, rlogin is not involved;
xterm is running directly on ssg0.

[%] I count as broken rlogins or rloginds that are so old they don't
    know about the window size protocol.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu

ssd@rtmvax.UUCP (Steve Dick) (08/15/90)

>> If I issue the command:
>> 	rcmd ssg0 xterm -display ssg2:0
>> the programs which use the screen size (more, vi, rn) understand the
>> size of the window.  On the other hand, if I issue:
>> 	xterm -e rlogin ssg0
>> all program remain convinced that the window is the size defined by
>> the termcap entry, regardless of the window's actual size.
> 
>> Why?

[stuff deleted]

> The first command works because, of course, rlogin is not involved;
> xterm is running directly on ssg0.

I have a similar problem.  It seems that when rlogin initially creates the
connnection, it does not copy the size.  If I resize the window after
starting it, rlogin corrects the size.

Is there some easy way to fix this other than resizing the window?

I would like to know how to either
 a) get rlogin to copy the size initially
or
 b) get X to tell rlogin to re-copy the size without actually changing the
    size of the window.

Also, I've noticed that the Sun version of vi gets very unhappy if I
resize its window bigger.  (It usually works if I make it smaller.)
I do not have this problem with the vi distributed with Encore's Gould
machine.

{uiucuxc,hoptoad,petsd}!peora!rtmvax!ssd
ssd@ucfunix.engr.ucf.edu
ucfunix!ssd@ucf-cs.ucf.edu