SUMMARY: xterm window size problem

From: Daniel Chen (
Date: Thu Mar 04 1993 - 01:54:00 CST

My original question:

> I'm running xterm on SUN under OpenWin 3.0, and rlogin to HP9000/750 machine.
> I found out when I resize the xterm window the HP machine didn't know I did it.
> I type " stty size ", it always give me the same column and row size setting,
> and this caused vi editor behaved like crazy. Is there anyone out there know how
> to fix this problem, thanks in advance.

  1) do the following everytime you resize xterm window

                eval `resize`
      I create an alias for vi, so I don't have to do the eval stuff every time
      I change the window size:

                alias myvi 'eval `resize` ;vi \!*'

  2) HP didn't handle window sizing at all until 8.07, and even 8.07's
     implementation is incomplete. HP-UX 9.0 should fix this problem.
  3) I found out myself that if you run xterm in HP machine and display to your
     SUN will fixed the problem. so I created another alias like this:

                if you use C-Shell:
        alias hpxterm 'xhost +hp ; rsh hp "setenv DISPLAY sun:0;/usr/bin/X11/xterm -ls"'

                if you use Bourne-Shell
        alias hpxterm 'xhost +hp ; rsh hp "export DISPLAY=sun:0;/usr/bin/X11/xterm -ls"'

        * suppose HP hostname is "hp" and SUN hostname is "sun"
ups!kalli!kevin@fourx.Aus.Sun.COM (Kevin Sheehan) (Dave Shevett)
Z (Anthony A. Datri) Philippe) (Claus Assmann) (Tim Hoogasian) (Per Hedeland) (Andy Pearman) (David Galloway)
Daniel Chen
Samsung Semiconductor Inc.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:32 CDT