Actually, the slang library doesn't use termcap or terminfo; it uses
hard-coded values for the escape sequences.  It doesn't handle timeouts
well, either.  If you press escape while the audio is playing, the audio
buffer becomes empty and the sound stops because the slang library is
waiting for another character from the terminal.  Perhaps I should take
another look at the ncurses library as a means of getting input from the
user.  I don't want to use ncurses for the output, though, beucase I want
to keep the output formatting as simple as possible.  In the program's
output, ANSI escape sequences are currently used only for clearing the
status line when it is being continuously displayed.

Dave Mielke wrote:

> Don't be so hasty to over-siplify the problem. I, for one, would be slow to
> trust this kind of stuff being too carelessly undertaken. The first thing
> over-looked, for example, would probably be full terminfo usage. The second
> would probably be proper timeout handling if individual keys, or keys with
> similar but different escape sequences, are typed.

-- 
Matt Campbell
Web site:  http://www.pobox.com/~mattcampbell/
ICQ #:  33005941


Reply via email to