iPXE
|
MuCurses printing functions. More...
#include <curses.h>
#include <stdio.h>
#include <stddef.h>
#include <ipxe/vsprintf.h>
#include "mucurses.h"
Go to the source code of this file.
Data Structures | |
struct | printw_context |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | waddch (WINDOW *win, const chtype ch) |
Add a single-byte character and rendition to a window and advance the cursor. More... | |
int | waddnstr (WINDOW *win, const char *str, int n) |
Add string of single-byte characters to a window. More... | |
static void | _printw_handler (struct printf_context *ctx, unsigned int c) |
int | vw_printw (WINDOW *win, const char *fmt, va_list varglist) |
Print formatted output in a window. More... | |
int | wprintw (WINDOW *win, const char *fmt,...) |
Print formatted output to a window. More... | |
MuCurses printing functions.
Definition in file print.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Add a single-byte character and rendition to a window and advance the cursor.
*win | window to be rendered in |
ch | character to be added at cursor |
rc | return status code |
Definition at line 23 of file print.c.
References _wputch(), ch, OK, and WRAP.
Referenced by addch(), mvaddch(), and mvwaddch().
int waddnstr | ( | WINDOW * | win, |
const char * | str, | ||
int | n | ||
) |
Add string of single-byte characters to a window.
*win | window to be rendered in |
*str | standard c-style string |
n | max number of chars from string to render |
rc | return status code |
Definition at line 36 of file print.c.
References _wputstr(), OK, and WRAP.
Referenced by addnstr(), addstr(), mvaddnstr(), mvaddstr(), mvwaddnstr(), mvwaddstr(), and waddstr().
|
static |
Definition at line 46 of file print.c.
References _wputch(), _curses_window::attrs, c, container_of, ctx, printw_context::win, and WRAP.
Referenced by vw_printw().
Print formatted output in a window.
*win | subject window |
*fmt | formatted string |
varglist | argument list |
rc | return status code |
Definition at line 61 of file print.c.
References _printw_handler(), printw_context::ctx, fmt, printf_context::handler, OK, vcprintf(), and printw_context::win.
Referenced by vwprintw(), and wprintw().
int wprintw | ( | WINDOW * | win, |
const char * | fmt, | ||
... | |||
) |
Print formatted output to a window.
*win | subject window |
*fmt | formatted string |
... | string arguments |
rc | return status code |
Definition at line 78 of file print.c.
References fmt, va_end, va_start, vw_printw(), and printw_context::win.