Mail Archives: djgpp-workers/2001/07/27/13:11:59
> From: "Mark E." <snowball3 AT bigfoot DOT com>
> Date: Fri, 27 Jul 2001 10:17:18 -0400
>
> > Shouldn't the escape sequences supported by this emulation be
> > available to termcap functions such as tgetstr via the same mechanism
> > you already implemented for extended keys?
>
> If you mean add capabilities to djgpp's termcap entry, then yes they need to
> be added so programs that use tgetstr, etc. will know about them.
Yes, that's what I had in mind.
> > Not necessarily: BIOS tty functions support color. (Let me know if
> > you want more details about this.) So this is basically a design
> > decision.
>
> Do you mean the int 0x10 functions ah=08 and 09 to read and write a character
> plus attribute at the current cursor position?
Yes. There's also function 0Eh, but it only allows to specify a
foreground. However, it's more useful, since it handles special
characters such as BS, CR, and LF. The problem with the background
color can be solved by writing a blank with the background color (with
function 9) before writing the character itself.
> True. But there are more disadvantages I want to avoid. Using conio would
> mean that a large amount of non-posix symbols would become involved in a
> posix function. conio's output functions are geared toward null terminated
> strings while the termios read and write functions specify a length. And
> conio's getch clashes with the curses function getch.
Yes, those are all good reasons not to use conio.
- Raw text -