Richard Ivanowich wrote:

> Hello all,
>
> I need some help. (new to c) I want to print strings at x,y cordinates on
> the screen.  But without using ncurses.
>
> Also how do i make text appear in colors.
>
> Richard Ivanowich


You can accomplish this using sequences (ex,ANSI escape sequences that will
position/move the cursor). However, it gets difficult because different
terminal types will deal with sequences differently. (and/or allot of low
level terminal programming fun).

You may be able to get around this by using the  "terminfo" package which
provides a variety of escape sequences and attributes for a wide varietyof
terminals as well as a programming interface. However, over the years
"terminfo" has sort of become blended with "ncurses" thus, in order to use
the terminfo package you may wind up having to include the  "ncurses.h"
header in addition to "term.h". (once pure it too has been tarnished with
curses)...

I'll admit, all this is not my expertise, in most situations I have gone and
just used ncurses...

/John  < [EMAIL PROTECTED] ?






--
email: [EMAIL PROTECTED]
Local mailserver  , remote

Just say no, to the death penalty!


Reply via email to