iPXE
Functions
print_nadv.c File Reference

MuCurses printing functions (no cursor advance) More...

#include <curses.h>
#include "mucurses.h"
#include "cursor.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
int waddchnstr (WINDOW *win, const chtype *chstr, int n)
 Add string of single-byte characters and renditions to a window. More...
 

Detailed Description

MuCurses printing functions (no cursor advance)

Definition in file print_nadv.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ waddchnstr()

int waddchnstr ( WINDOW win,
const chtype chstr,
int  n 
)

Add string of single-byte characters and renditions to a window.

Parameters
*winwindow to be rendered in
*chstrpointer to first chtype in "string"
nmax number of chars from chstr to render
Return values
rcreturn status code

Definition at line 21 of file print_nadv.c.

21  {
22  struct cursor_pos pos;
23 
24  _store_curs_pos( win, &pos );
25  _wputchstr( win, chstr, NOWRAP, n );
26  _restore_curs_pos( win, &pos );
27  return OK;
28 }
Definition: sis900.h:208
void _wputchstr(WINDOW *win, const chtype *chstr, int wrap, int n) __nonnull
Write a chtype string to a window.
Definition: mucurses.c:107
#define NOWRAP
Definition: mucurses.h:13
unsigned int n
Definition: entropy.h:159
static void _restore_curs_pos(WINDOW *win, struct cursor_pos *pos)
Restore cursor position from encoded backup variable.
Definition: cursor.h:22
static void _store_curs_pos(WINDOW *win, struct cursor_pos *pos)
Store cursor position for later restoration.
Definition: cursor.h:32

References _restore_curs_pos(), _store_curs_pos(), _wputchstr(), n, NOWRAP, and OK.

Referenced by addchnstr(), addchstr(), mvaddchnstr(), mvaddchstr(), mvwaddchnstr(), mvwaddchstr(), and waddchstr().