Subject: Writing terminal-independent software.
To: None <port-i386@netbsd.org>
From: Andrew Steven Ball <kb9ylw@cyberspace.org>
List: port-i386
Date: 03/26/2001 02:12:33
Hello!

I'm thinking of writing a QWK off-line reader, and building
it under NetBSD/i386. I would like to write it in such a way
that it would work on various terminal types, including
things like wscons, xterm etc.

I remember reading years ago about termcap, which I think
may have been superceded by terminfo.  If I'm writing in C,
is there a library I can use that will do all the donkey-
work of digging up the appropriate escape sequences for the
terminal in use?  My needs are pretty minimal, clearing the
screen, positioning the cursor and so on.

I realise there may already be QWK software for NetBSD, I
haven't looked yet.  I would be interested in the answer to
this question anyway.

Regards,
  - Andy.