zsh-workers
 help / color / mirror / code / Atom feed
* BUG: Impossible TIOCGWINSZ rows/cols
@ 1999-06-22 11:36 Andrej Borsenkow
  1999-06-22 16:33 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 1999-06-22 11:36 UTC (permalink / raw)
  To: ZSH workers mailing list

I just got it (with all patches):

BUG: Impossible TIOCGWINSZ rows
BUG: Impossible TIOCGWINSZ cols

This is using dtterm under TED 4.2. I start dtterm using front panel (as not
login shell). ZSH is my login shell. I currently don't know how to reproduce
it - anybody seen it?

/andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: Impossible TIOCGWINSZ rows/cols
  1999-06-22 11:36 BUG: Impossible TIOCGWINSZ rows/cols Andrej Borsenkow
@ 1999-06-22 16:33 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-06-22 16:33 UTC (permalink / raw)
  To: Andrej Borsenkow, ZSH workers mailing list

On Jun 22,  3:36pm, Andrej Borsenkow wrote:
} Subject: BUG: Impossible TIOCGWINSZ rows/cols
}
} I just got it (with all patches):
} 
} BUG: Impossible TIOCGWINSZ rows
} BUG: Impossible TIOCGWINSZ cols
} 
} This is using dtterm under TED 4.2.

This means (as you might guess) that my new LINES/COLUMNS code expected
to be able to read the terminal size from the tty driver and got back a
non-positive value (probably zero).  I knew this sometimes occured on Sun
and BSD operating systems back when I was using them regularly, but I was
not sure it still did.

The code grabs the termcap (terminfo) rows/cols values in this case, or
uses 24/80 if the term database doesn't have values.

If (1) this happens only on startup and not when you resize the window,
and (2) the LINES/COLUMNS values you're getting are correct, then you can
just ignore the message.  (You get the warning only if you compile with
debugging.)  If (1) is false, I'm not sure what to do; the only reasonable
thing may be to take out the debug warning and simply ignore the problem.
If (2) is false, you'll have to compensate in your startup files by using
the dtterm equivalent of `eval $(resize)`.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-22 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-22 11:36 BUG: Impossible TIOCGWINSZ rows/cols Andrej Borsenkow
1999-06-22 16:33 ` Bart Schaefer

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).