bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not a bug - but I need some help...


From: Thomas Dickey
Subject: Re: Not a bug - but I need some help...
Date: Wed, 26 Feb 2003 19:06:41 -0500
User-agent: Mutt/1.3.27i

On Thu, Feb 27, 2003 at 12:59:14AM +0000, Mike Aubury wrote:
> 
> I've just tried it with waddstr - and I'm getting the same result...
> 
> (Its a padded with ' ' char(200) which is being written onto a line thats 46 
> characters wide) - I'm displaying with reverse video and getting 4 lines of 
> black...
> 
> Am I doing something wrong ?

sorry - poor memory on my part.  Here's the set I was thinking of.
Note that they don't accept a char*, but a chtype*, which makes them
rather awkward to use.

curs_addchstr(3X)                               curs_addchstr(3X)


NAME
       addchstr,  addchnstr,  waddchstr,  waddchnstr, mvaddchstr,
       mvaddchnstr, mvwaddchstr, mvwaddchnstr - add a  string  of
       characters (and attributes) to a curses window

SYNOPSIS
       #include <curses.h>

       int addchstr(const chtype *chstr);
       int addchnstr(const chtype *chstr, int n);
       int waddchstr(WINDOW *win, const chtype *chstr);
       int waddchnstr(WINDOW *win, const chtype *chstr, int n);
       int mvaddchstr(int y, int x, const chtype *chstr);
       int mvaddchnstr(int y, int x, const chtype *chstr, int n);
       int mvwaddchstr(WINDOW *win, int y, int  x,  const  chtype *chstr);
       int mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr, int n);

Otherwise, a
        wprintw("%.s", n, s);
will truncate things - takes some tinkering to do it properly...

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]