/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_set_term.c | 47 #define CUR macro 53 #define MaxColors macro 54 #define NumLabels macro 61 set_term(SCREEN *screenp) argument 63 SCREEN *oldSP; local 64 SCREEN *newSP; local 101 _nc_free_keytry(TRIES * kt) argument 111 delink_screen(SCREEN *sp) argument 113 SCREEN *last = 0; local 114 SCREEN *temp; local 115 bool result = FALSE; local 135 delscreen(SCREEN *sp) argument 137 int i; local 144 ripoff_t *rop; local 217 no_mouse_event(SCREEN *sp GCC_UNUSED) argument 223 no_mouse_inline(SCREEN *sp GCC_UNUSED) argument 229 no_mouse_parse(SCREEN *sp GCC_UNUSED, int code GCC_UNUSED) argument 235 no_mouse_resume(SCREEN *sp GCC_UNUSED) argument 240 no_mouse_wrap(SCREEN *sp GCC_UNUSED) argument 246 extract_fgbg(char *src, int *result) argument 248 char *dst = 0; local 249 long value = strtol(src, &dst, 0); local 264 #define ReturnScreenError macro 269 _nc_setupscreen( SCREEN **spp, int slines, int scolumns, FILE *output, int filtered, int slk_format) argument 279 char *env; local 280 int bottom_stolen = 0; local 281 ripoff_t *rop; local 282 SCREEN *sp; local 284 bool support_cookies = USE_XMC_SUPPORT; local 423 int fg, bg; local 424 char sep1, sep2; local 425 int count = sscanf(env, "%d%c%d%c", &fg, &sep1, &bg, &sep2); local 445 char *p = getenv("COLORFGBG"); local 638 int count; local 639 WINDOW *w; local 688 _nc_setupscreen(int slines GCC_UNUSED, int scolumns GCC_UNUSED, FILE *output, int filtered, int slk_format) argument 694 SCREEN *sp = 0; local 695 int rc = NCURSES_SP_NAME(_nc_setupscreen) (&sp, local 712 _nc_ripoffline(NCURSES_SP_DCLx int line, int (*init) (WINDOW *, int)) argument 716 int code = ERR; local 744 _nc_ripoffline(int line, int (*init) (WINDOW *, int)) argument 751 ripoffline(NCURSES_SP_DCLx int line, int (*init) (WINDOW *, int)) argument 763 ripoffline(int line, int (*init) (WINDOW *, int)) argument [all...] |
H A D | lib_slk.c | 47 #define CUR macro 53 #define NumLabels macro 54 #define NoColorVideo macro 55 #define LabelWidth macro 56 #define LabelHeight macro 68 slk_failed(NCURSES_SP_DCL0) function 79 _nc_format_slks(NCURSES_SP_DCLx int cols) argument 81 int gap, i, x; local 82 int max_length; local 137 _nc_slk_initialize(WINDOW *stwin, int cols) argument 139 int i; local 140 int res = OK; local 141 size_t max_length; local 142 SCREEN *sp; local 143 int numlab; local 194 size_t used = max_length + 1; local 231 NCURSES_SP_NAME(slk_restore) (NCURSES_SP_DCL0) function 247 slk_restore(void) function [all...] |
H A D | lib_slkatr_set.c | 44 slk_attr_set(NCURSES_SP_DCLx const attr_t attr, NCURSES_PAIRS_T color_pair_number, void *opts) argument 49 int code = ERR; local 74 slk_attr_set(const attr_t attr, NCURSES_COLOR_T color_pair_number, void *opts) argument [all...] |
H A D | lib_slkatrof.c | 44 slk_attroff(NCURSES_SP_DCLx const chtype attr) argument 62 slk_attroff(const chtype attr) argument [all...] |
H A D | lib_slkatron.c | 44 slk_attron(NCURSES_SP_DCLx const chtype attr) argument 62 slk_attron(const chtype attr) argument [all...] |
H A D | lib_slkatrset.c | 44 slk_attrset(NCURSES_SP_DCLx const chtype attr) argument 57 slk_attrset(const chtype attr) argument [all...] |
H A D | lib_slkattr.c | 43 NCURSES_EXPORT(attr_t) function 49 attr_t result = AttrOf(SP_PARM->_slk->attr) & ALL_BUT_COLOR; local 50 int pair = GetPair(SP_PARM->_slk->attr); local 59 NCURSES_EXPORT(attr_t) function [all...] |
H A D | lib_slkclear.c | 46 NCURSES_SP_NAME(slk_clear) (NCURSES_SP_DCL0) function 48 int rc = ERR; local 70 slk_clear(void) function [all...] |
H A D | lib_slkcolor.c | 44 slk_color(NCURSES_SP_DCLx NCURSES_PAIRS_T color_pair_number) argument 46 int code = ERR; local 64 slk_color(NCURSES_PAIRS_T color_pair_number) argument [all...] |
H A D | lib_slkinit.c | 46 #define SoftkeyFormat macro 52 slk_init(NCURSES_SP_DCLx int format) argument 54 int code = ERR; local 76 slk_init(int format) argument [all...] |
H A D | lib_slklab.c | 46 slk_label(NCURSES_SP_DCLx int n) argument 57 slk_label(int n) argument [all...] |
H A D | lib_slkrefr.c | 43 #define CUR macro 49 #define NumLabels macro 58 slk_paint_info(WINDOW *win) argument 60 SCREEN *sp = _nc_screen_of(win); local 63 int i; local 78 slk_intern_refresh(SCREEN *sp) argument 80 int i; local 81 int fmt; local 82 SLK *slk; local 83 int numlab; local 143 NCURSES_SP_NAME(slk_noutrefresh) (NCURSES_SP_DCL0) function 158 slk_noutrefresh(void) function 168 NCURSES_SP_NAME(slk_refresh) (NCURSES_SP_DCL0) function 183 slk_refresh(void) function [all...] |
H A D | lib_slkset.c | 50 slk_set(NCURSES_SP_DCLx int i, const char *astr, int format) argument 52 SLK *slk; local 53 int offset = 0; local 54 int numchrs; local 55 int numcols; local 56 int limit; local 57 const char *str = astr; local 58 const char *p; local 81 mbstate_t state; local 82 wchar_t wc; local 83 size_t need; local 152 slk_set(int i, const char *astr, int format) argument [all...] |
H A D | lib_slktouch.c | 44 NCURSES_SP_NAME(slk_touch) (NCURSES_SP_DCL0) function 57 slk_touch(void) function [all...] |
H A D | lib_touch.c | 48 NCURSES_EXPORT(bool) function 60 NCURSES_EXPORT(bool) function 63 int i; local 75 wtouchln(WINDOW *win, int y, int n, int changed) argument 77 int i; local [all...] |
H A D | lib_ungetch.c | 51 _nc_fifo_dump(SCREEN *sp) argument 53 int i; local 61 safe_ungetch(SCREEN *sp, int ch) argument 63 int rc = ERR; local 90 ungetch(int ch) argument [all...] |
H A D | lib_vline.c | 46 wvline(WINDOW *win, chtype ch, int n) argument 48 int code = ERR; local 49 int row, col; local 50 int end; local 55 NCURSES_CH_T wch; local 69 struct ldat *line = &(win->_line[end]); local [all...] |
H A D | lib_wattroff.c | 48 wattr_off(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument 60 toggle_attr_off(WINDOW_ATTRS(win), at); local [all...] |
H A D | lib_wattron.c | 48 wattr_on(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument 60 toggle_attr_on(WINDOW_ATTRS(win), at); local [all...] |
H A D | lib_winch.c | 44 NCURSES_EXPORT(chtype) function [all...] |
H A D | lib_window.c | 45 _nc_synchook(WINDOW *win) argument 55 mvderwin(WINDOW *win, int y, int x) argument 58 WINDOW *orig; local 59 int i; local 60 int rc = ERR; local 80 syncok(WINDOW *win, bool bf) argument 93 wsyncup(WINDOW *win) argument 97 WINDOW *wp; local 102 int y; local 103 WINDOW *pp = wp->_parent; local 109 int left = wp->_line[y].firstchar; local 111 struct ldat *line = &(pp->_line[wp->_pary + y]); local 113 int right = wp->_line[y].lastchar + wp->_parx; local 125 wsyncdown(WINDOW *win) argument 132 WINDOW *pp = win->_parent; local 133 int y; local 146 struct ldat *line = &(win->_line[y]); local 148 int left = pp->_line[win->_pary + y].firstchar - win->_parx; local 149 int right = pp->_line[win->_pary + y].lastchar - win->_parx; local 163 wcursyncup(WINDOW *win) argument 166 WINDOW *wp; local 176 dupwin(WINDOW *win) argument 179 WINDOW *nwin = 0; local 180 size_t linesize; local 181 int i; local 187 SCREEN *sp = _nc_screen_of(win); local [all...] |
H A D | nc_panel.c | 38 NCURSES_SP_NAME(_nc_panelhook) (NCURSES_SP_DCL0) function 49 _nc_panelhook(void) function [all...] |
H A D | resizeterm.c | 45 #define CUR macro 54 #define EXTRA_ARGS macro 55 #define EXTRA_DCLS macro 67 show_window_sizes(const char *name) argument 69 SCREEN *sp; local 70 WINDOWLIST *wp; local 95 NCURSES_EXPORT(bool) function 106 NCURSES_EXPORT(bool) function 116 ripped_window(WINDOW *win) argument 118 ripoff_t *result = 0; local 119 ripoff_t *rop; local 123 SCREEN *sp = _nc_screen_of(win); local 140 ripped_bottom(WINDOW *win) argument 142 int result = 0; local 143 ripoff_t *rop; local 147 SCREEN *sp = _nc_screen_of(win); local 165 child_depth(WINDOW *cmp) argument 167 int depth = 0; local 171 SCREEN *sp = _nc_screen_of(cmp); local 173 WINDOWLIST *wp; local 176 WINDOW *tst = &(wp->win); local 190 parent_depth(WINDOW *cmp) argument 192 int depth = 0; local 195 WINDOW *tst; local 208 adjust_window(WINDOW *win, int ToLines, int ToCols, int stolen EXTRA_DCLS) argument 210 int result; local 211 int bottom = CurLines + _nc_screen_of(win)->_topstolen - stolen; local 212 int myLines = win->_maxy + 1; local 213 int myCols = win->_maxx + 1; local 214 ripoff_t *rop = ripped_window(win); local 235 ToCols); local 272 decrease_size(NCURSES_SP_DCLx int ToLines, int ToCols, int stolen EXTRA_DCLS) argument 274 bool found; local 275 int depth = 0; local 276 WINDOWLIST *wp; local 285 WINDOW *win = &(wp->win); local 306 increase_size(NCURSES_SP_DCLx int ToLines, int ToCols, int stolen EXTRA_DCLS) argument 308 bool found; local 309 int depth = 0; local 310 WINDOWLIST *wp; local 319 WINDOW *win = &(wp->win); local 340 resize_term(NCURSES_SP_DCLx int ToLines, int ToCols) argument 342 int result = OK EXTRA_ARGS; local 343 int was_stolen; local 358 int myLines = CurLines = screen_lines(SP_PARM); local 359 int myCols = CurCols = screen_columns(SP_PARM); local 441 resize_term(int ToLines, int ToCols) argument 443 int res = ERR; local 460 resizeterm(NCURSES_SP_DCLx int ToLines, int ToCols) argument 462 int result = ERR; local 475 ripoff_t *rop; local 476 bool slk_visible = (SP_PARM != 0 local 487 clearok(CurScreen(SP_PARM), TRUE); /* screen contents are unknown */ local 526 resizeterm(int ToLines, int ToCols) argument [all...] |
H A D | safe_sprintf.c | 41 Flags, Width, Prec, Type, Format enumerator in enum:__anon4642 42 } PRINTF; typedef in typeref:enum:__anon4642 44 #define VA_INTGR macro 45 #define VA_FLOAT macro 46 #define VA_POINT macro 53 _nc_printf_length(const char *fmt, va_list ap) argument 55 size_t length = BUFSIZ; local 56 char *buffer; local 57 char *format; local 58 int len = 0; local 59 size_t fmt_len; local 60 char fmt_arg[BUFSIZ]; local 74 static char dummy[] = ""; local 75 PRINTF state = Flags; local 76 char *pval = dummy; /* avoid const-cast */ local 77 double fval = 0.0; local 78 int done = FALSE; local 79 int ival = 0; local 80 int prec = -1; local 81 int type = 0; local 82 int used = 0; local 83 int width = -1; local 84 size_t f = 0; local 91 int num = *fmt - '0'; local 214 #define my_buffer macro 215 #define my_length macro 221 _nc_printf_string(NCURSES_SP_DCLx const char *fmt, va_list ap) argument 225 char *result = 0; local 229 va_list ap2; local 230 int len; local 279 _nc_printf_string(const char *fmt, va_list ap) argument [all...] |
H A D | sigaction.c | 41 _nc_sigaction(int sig, sigaction_t * sigact, sigaction_t * osigact) argument 47 _nc_sigemptyset(sigset_t * mask) argument 54 _nc_sigprocmask(int mode, sigset_t * mask, sigset_t * omask) argument 56 sigset_t current = sigsetmask(0); local 73 _nc_sigaddset(sigset_t * mask, int sig) argument [all...] |