Hi Collin,

> > This needs thought first, because where on the Unix side you have
> > two concepts:
> >   - winsize from the OS,
> >   - lines and columns from the terminfo description of $TERM,
> >     and the LINES and COLUMNS environment variables,
> > on the Windows side you have only the Consoles.
> > 
> > How are these concepts delimited (on the Unix side)?

IMO the documentation should tell the application writer:
  - when should tcgetwinsize be used?
  - when should $TERM be used?
  - when should $LINES, $COLUMNS be used?
Three concepts. Which to use in which situations?

> I've used GetConsoleScreenBufferInfo once in the past and it worked
> fine in Wine atleast [1]. I don't use Windows so perhaps it wouldn't
> work there.

For programs that run in a Cygwin console one needs different code.
See lib/isatty.c...

Bruno




Reply via email to