iPXE
print_nadv.c
Go to the documentation of this file.
00001 #include <curses.h>
00002 #include "mucurses.h"
00003 #include "cursor.h"
00004 
00005 /** @file
00006  *
00007  * MuCurses printing functions (no cursor advance)
00008  *
00009  */
00010 
00011 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00012 
00013 /**
00014  * Add string of single-byte characters and renditions to a window
00015  *
00016  * @v *win      window to be rendered in
00017  * @v *chstr    pointer to first chtype in "string"
00018  * @v n         max number of chars from chstr to render
00019  * @ret rc      return status code
00020  */
00021 int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) {
00022         struct cursor_pos pos;  
00023 
00024         _store_curs_pos( win, &pos );
00025         _wputchstr( win, chstr, NOWRAP, n );
00026         _restore_curs_pos( win, &pos );
00027         return OK;
00028 }