This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
2006-06-21 12:20:39 +02:00
|
|
|
#include <curses.h>
|
2006-12-18 17:52:21 +01:00
|
|
|
#include "mucurses.h"
|
2006-06-21 12:20:39 +02:00
|
|
|
#include "cursor.h"
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* MuCurses printing functions (no cursor advance)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-03-02 13:02:11 +01:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
|
2006-06-21 12:20:39 +02:00
|
|
|
/**
|
|
|
|
* Add string of single-byte characters and renditions to a window
|
|
|
|
*
|
|
|
|
* @v *win window to be rendered in
|
|
|
|
* @v *chstr pointer to first chtype in "string"
|
|
|
|
* @v n max number of chars from chstr to render
|
|
|
|
* @ret rc return status code
|
|
|
|
*/
|
|
|
|
int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) {
|
|
|
|
struct cursor_pos pos;
|
|
|
|
|
|
|
|
_store_curs_pos( win, &pos );
|
|
|
|
_wputchstr( win, chstr, NOWRAP, n );
|
|
|
|
_restore_curs_pos( win, &pos );
|
|
|
|
return OK;
|
|
|
|
}
|