* wrong LINES, COLUMNS
@ 2003-04-25 14:54 koen.van_hoo1
2003-04-25 15:28 ` Tomi Vainio - Sun Finland
0 siblings, 1 reply; 4+ messages in thread
From: koen.van_hoo1 @ 2003-04-25 14:54 UTC (permalink / raw)
To: zsh-users
Hi,
Recently it did install some patches on our servers, which caused
ioctl(SHTTY, TIOCGWINSZ, (char *)&shttyinfo.winsize)
to return an error.
In that case ws_row and ws_col in shttyinfo.winsize are set to 0 in Src/utils.c,
and a lot off tools like vi, more, less, ... don't work properly anymore.
If it was changed into
=======================================
#ifdef TIOCGWINSZ
if (SHTTY == -1)
return;
if (ioctl(SHTTY, TIOCGWINSZ, (char *)&shttyinfo.winsize) == 0) {
resetzle = (ttyrows != shttyinfo.winsize.ws_row ||
ttycols != shttyinfo.winsize.ws_col);
if (from == 0 && resetzle && ttyrows && ttycols)
from = 1; /* Signal missed while a job owned the tty? */
ttyrows = shttyinfo.winsize.ws_row;
ttycols = shttyinfo.winsize.ws_col;
} else {
/* Set to unknown on failure */
shttyinfo.winsize.ws_row = lines;
shttyinfo.winsize.ws_col = columns;
resetzle = from == 1;
}
#else
resetzle = from == 1;
#endif /* TIOCGWINSZ */
==========================================
it is possible to set LINES and COLUMNS from the commandline, and have vi, less, more, ...
to work just fin.
-- Koen
^ permalink raw reply [flat|nested] 4+ messages in thread
* wrong LINES, COLUMNS
2003-04-25 14:54 wrong LINES, COLUMNS koen.van_hoo1
@ 2003-04-25 15:28 ` Tomi Vainio - Sun Finland
0 siblings, 0 replies; 4+ messages in thread
From: Tomi Vainio - Sun Finland @ 2003-04-25 15:28 UTC (permalink / raw)
To: koen.van_hoo1; +Cc: zsh-users
koen.van_hoo1@skynet.be writes:
>
> Recently it did install some patches on our servers, which caused
> ioctl(SHTTY, TIOCGWINSZ, (char *)&shttyinfo.winsize)
> to return an error.
> In that case ws_row and ws_col in shttyinfo.winsize are set to 0 in Src/utils.c,
> and a lot off tools like vi, more, less, ... don't work properly anymore.
>
You didn't say which server you are talking about. Might it be
Solaris 2.6 and you installed latest kernel jumbo patch which has
identical problem you just described?
4843340 patch 105181-34 /kernel/strmod/ptem returns EINVAL for
TIOCGWINSZ ioctl
Tomppa
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: wrong LINES, COLUMNS
@ 2003-04-26 9:08 koen.van_hoo1
2003-04-26 13:53 ` Tomi Vainio - Sun Finland
0 siblings, 1 reply; 4+ messages in thread
From: koen.van_hoo1 @ 2003-04-26 9:08 UTC (permalink / raw)
To: Tomi.Vainio, koen.van_hoo1; +Cc: zsh-users
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]
Hi,
Yes, it is on Solaris 2.6, but I don't know what patch it was.
I just sent this mail, so maybe somebody can apply my changes into the official sources.
I don't have the knowledgne nor the time to find out how to do it myself, that's why I sent it to the mailing list.
It's probably not so important, but I guess it's a little effort for somebody who knows the procedure.
-- Koen
koen.van_hoo1@skynet.be writes:
>
> Recently it did install some patches on our servers, which caused
> ioctl(SHTTY, TIOCGWINSZ, (char *)&shttyinfo.winsize)
> to return an error.
> In that case ws_row and ws_col in shttyinfo.winsize are set to 0 in Src/utils.c,
> and a lot off tools like vi, more, less, ... don't work properly anymore.
>
You didn't say which server you are talking about. Might it be
Solaris 2.6 and you installed latest kernel jumbo patch which has
identical problem you just described?
4843340 patch 105181-34 /kernel/strmod/ptem returns EINVAL for
TIOCGWINSZ ioctl
Tomppa
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-26 13:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-25 14:54 wrong LINES, COLUMNS koen.van_hoo1
2003-04-25 15:28 ` Tomi Vainio - Sun Finland
2003-04-26 9:08 koen.van_hoo1
2003-04-26 13:53 ` Tomi Vainio - Sun Finland
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).