[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    [ast-users] ksh93r+_alpha2_2006_06_30 does not recognize terminal
From:       roland.mainz () nrubsig ! org (Roland Mainz)
Date:       2006-06-27 21:10:27
Message-ID: 44A1D6D5.67EAE4D1 () nrubsig ! org
[Download RAW message or body]


Hi!

----

I just found another issue with ksh93r+_alpha2_2006_06_30 - when ksh93
is executing an external command it does not seem to be able to
recognize changes in the terminal window size:

Steps to reproduce:
1. Start "dtterm" (CDE terminal emulator) with a window size of 132x24

2. Check size:
-- snip --
% echo $COLUMNS $LINES
132 24
-- snip --

3. Start program which blocks the shell during execution ("vi" or in
this example "nedit"):
-- snip --
% nedit foobar.txt
-- snip --

4. Resize terminal (dtterm) window to 132x28

5. Quit application (e.g. close the window of "nedit")

6. Check terminal size used by the shell:
-- snip --
% echo $COLUMNS $LINES
132 24
-- snip --

7. /usr/openwin/bin/resize in Solaris reports the correct terminal
window size:
-- snip --
% resize
COLUMNS=132;
LINES=28;
export COLUMNS LINES;
-- snip --

Notes:
- Quick test with bash3 shows that it works there... ;-(
- A % echo $COLUMNS $LINES ; /usr/bin/sleep 20 ; echo $COLUMNS $LINES #
does not suffer from that problem - which makes me think this may be
simply the problem that an external command may interfer with the
signals somehow. But that doesn't explain why bash3 is able to handle
the problem correctly... ;-/
-  A discussion about a similar (but unrelated to ksh93) problem in "vi"
can be found at
http://mail.opensolaris.org/pipermail/opensolaris-discuss/2006-May/016389.html

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic