Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


curs_sp_funcs(3x) — Linux manual page

NAME |SYNOPSIS |DESCRIPTION |NOTES |PORTABILITY |SEE ALSO |COLOPHON

curs_sp_funcs(3X)curs_sp_funcs(3X)

NAME        top

       curs_sp_funcs -cursesscreen-pointer extension

SYNOPSIS        top

#include <curses.h>int alloc_pair_sp(SCREEN*sp, intfg, intbg);int assume_default_colors_sp(SCREEN*sp, intfg, intbg);int baudrate_sp(SCREEN*sp);int beep_sp(SCREEN*sp);bool can_change_color_sp(SCREEN*sp);int cbreak_sp(SCREEN*sp);int color_content_sp(SCREEN*sp, shortcolor, short*r, short*g, short*b);int curs_set_sp(SCREEN*sp, intvisibility);int def_prog_mode_sp(SCREEN*sp);int def_shell_mode_sp(SCREEN*sp);int define_key_sp(SCREEN*sp, const char *definition, intkeycode);int delay_output_sp(SCREEN*sp, intms);int doupdate_sp(SCREEN*sp);int echo_sp(SCREEN*sp);int endwin_sp(SCREEN*sp);char erasechar_sp(SCREEN*sp);int erasewchar_sp(SCREEN*sp, wchar_t *ch);int extended_color_content_sp(SCREEN *sp, intcolor, int *r, int *g, int *b);int extended_pair_content_sp(SCREEN*sp, intpair, int *fg, int *bg);int extended_slk_color_sp(SCREEN*sp, intpair);void filter_sp(SCREEN*sp);int find_pair_sp(SCREEN*sp, intfg, intbg);int flash_sp(SCREEN*sp);int flushinp_sp(SCREEN*sp);int free_pair_sp(SCREEN*sp, intpair);int get_escdelay_sp(SCREEN*sp);int getmouse_sp(SCREEN*sp, MEVENT* event);WINDOW* getwin_sp(SCREEN*sp, FILE*filep);int halfdelay_sp(SCREEN*sp, inttenths);bool has_colors_sp(SCREEN*sp);bool has_ic_sp(SCREEN*sp);bool has_il_sp(SCREEN*sp);int has_key_sp(SCREEN*sp, intch);bool has_mouse_sp(SCREEN*sp);int init_color_sp(SCREEN*sp, shortcolor, shortr, shortg, shortb);int init_extended_color_sp(SCREEN*sp, intcolor, intr, intg, intb);int init_extended_pair_sp(SCREEN*sp, intpair, intfg, intbg);int init_pair_sp(SCREEN*sp, shortpair, shortfg, shortbg);int intrflush_sp(SCREEN*sp, WINDOW*win, boolbf);bool is_term_resized_sp(SCREEN*sp, intlines, intcolumns);bool isendwin_sp(SCREEN*sp);int key_defined_sp(SCREEN*sp, const char *definition);char* keybound_sp(SCREEN*sp, intkeycode, intcount);NCURSES_CONST char * keyname_sp(SCREEN*sp, intc);int keyok_sp(SCREEN*sp, intkeycode, boolenable);char killchar_sp(SCREEN*sp);int killwchar_sp(SCREEN*sp, wchar_t *ch);char* longname_sp(SCREEN*sp);int mcprint_sp(SCREEN*sp, char *data, intlen);int mouseinterval_sp(SCREEN*sp, interval);mmask_t mousemask_sp(SCREEN*sp, mmask_tnewmask, mmask_t *oldmask);int mvcur_sp(SCREEN*sp, intoldrow, intoldcol, intnewrow, intnewcol);int napms_sp(SCREEN*sp, intms);WINDOW* newpad_sp(SCREEN*sp, intnrows, intncols);SCREEN* new_prescr(void);SCREEN* newterm_sp(SCREEN*sp, const char *type, FILE *outfd, FILE *infd);WINDOW* newwin_sp(SCREEN*sp, intnlines, intncols, intbegin_y, intbegin_x);int nl_sp(SCREEN*sp);int nocbreak_sp(SCREEN*sp);int noecho_sp(SCREEN*sp);void nofilter_sp(SCREEN*sp);int nonl_sp(SCREEN*sp);void noqiflush_sp(SCREEN*sp);int noraw_sp(SCREEN*sp);int pair_content_sp(SCREEN*sp, shortpair, short*fg, short*bg);void qiflush_sp(SCREEN*sp);int raw_sp(SCREEN*sp);int reset_prog_mode_sp(SCREEN*sp);void reset_color_pairs_sp(SCREEN*sp);int reset_shell_mode_sp(SCREEN*sp);int resetty_sp(SCREEN*sp);int resize_term_sp(SCREEN*sp, intlines, intcolumns);int resizeterm_sp(SCREEN*sp, intlines, intcolumns);int ripoffline_sp(SCREEN*sp, intline, int (*init)(WINDOW*win, intfmt));int savetty_sp(SCREEN*sp);int scr_init_sp(SCREEN*sp, const char *filename);int scr_restore_sp(SCREEN*sp, const char *filename);int scr_set_sp(SCREEN*sp, const char *filename);int set_escdelay_sp(SCREEN*sp, intms);int set_tabsize_sp(SCREEN*sp, intcols);int slk_attr_set_sp(SCREEN*sp, const attr_tattrs, shortpair, void*opts);int slk_attrset_sp(SCREEN*sp, const chtypea);int slk_attroff_sp(SCREEN*sp, const chtypea);int slk_attron_sp(SCREEN*sp, const chtypea);attr_t slk_attr_sp(SCREEN*sp);int slk_clear_sp(SCREEN*sp);int slk_color_sp(SCREEN*sp, shortpair);int slk_init_sp(SCREEN*sp, intfmt);char* slk_label_sp(SCREEN*sp, intlabnum);int slk_noutrefresh_sp(SCREEN*sp);int slk_refresh_sp(SCREEN*sp);int slk_restore_sp(SCREEN*sp);int slk_set_sp(SCREEN*sp, intlabnum, const char *label, intfmt);int slk_touch_sp(SCREEN*sp);int start_color_sp(SCREEN*sp);attr_t term_attrs_sp(SCREEN*sp);chtype termattrs_sp(SCREEN*sp);char* termname_sp(SCREEN*sp);int typeahead_sp(SCREEN*sp, intfd);int unget_wch_sp(SCREEN*sp, const wchar_twch);int ungetch_sp(SCREEN*sp, intch);int ungetmouse_sp(SCREEN*sp,MEVENT * event);int use_default_colors_sp(SCREEN*sp);void use_env_sp(SCREEN*sp, boolbf);int use_legacy_coding_sp(SCREEN*sp, intlevel);void use_tioctl_sp(SCREEN *sp, boolbf);int vid_attr_sp(SCREEN*sp, attr_tattrs, shortpair, void *opts);int vid_puts_sp(SCREEN*sp, attr_tattrs, shortpair, void *opts, NCURSES_SP_OUTCputc);int vidattr_sp(SCREEN*sp, chtypeattrs);int vidputs_sp(SCREEN*sp, chtypeattrs, NCURSES_SP_OUTCputc);wchar_t* wunctrl_sp(SCREEN*sp, cchar_t *ch);#include <form.h>FORM* new_form_sp(SCREEN*sp, FIELD **fields);#include <menu.h>MENU* new_menu_sp(SCREEN*sp, ITEM **items);#include <panel.h>PANEL* ceiling_panel(SCREEN*sp);PANEL* ground_panel(SCREEN*sp);void update_panels_sp(SCREEN*sp);#include <term.h>int del_curterm_sp(SCREEN*sp, TERMINAL *oterm);int putp_sp(SCREEN*sp, const char *str);int restartterm_sp(SCREEN*sp, NCURSES_CONST char*term, intfiledes, int *errret);TERMINAL* set_curterm_sp(SCREEN*sp, TERMINAL*nterm);int tgetent_sp(SCREEN*sp, char *bp, const char *name);int tgetflag_sp(SCREEN*sp, const char *capname);int tgetnum_sp(SCREEN*sp, const char *capname);char* tgetstr_sp(SCREEN*sp, const char *capname, char **area);char* tgoto_sp(SCREEN*sp, const char *capname, intcol, introw);int tigetflag_sp(SCREEN*sp, const char *capname);int tigetnum_sp(SCREEN*sp, const char *capname);char* tigetstr_sp(SCREEN*sp, const char *capname);       /* may instead use 9 long parameters */char* tparm_sp(SCREEN*sp, const char *str, ...);int tputs_sp(SCREEN*sp, const char *str, intaffcnt, NCURSES_SP_OUTCputc);#include <unctrl.h>NCURSES_CONST char* unctrl_sp(SCREEN*sp, chtypec);

DESCRIPTION        top

       This  implementation  can  be configured to provide a set of func‐       tions which improve the ability to manage multiple screens.   This       feature  can  be  added  to any of the configurations supported by       ncurses; it adds new entrypoints without changing the  meaning  of       any of the existing ones.IMPROVED FUNCTIONS       Most  of  the functions are new versions of existing functions.  A       parameter is added at the front of the parameter list.   It  is  a       SCREEN pointer.       The existing functions all use the current screen, which is a sta‐       tic  variable.   The  extended functions use the specified screen,       thereby reducing the number of variables which must be modified to       update multiple screens.NEW FUNCTIONS       Here are the new functions:       ceiling_panel            this returns a pointer to the topmost panel in the given            screen.       ground_panel            this returns a pointer to the lowest panel in the given            screen.       new_prescr            when creating a new screen, the library uses static variables            which have been preset, e.g., byuse_env(3X),filter(3X),            etc.  With the screen-pointer extension, there are situations            where it must create a current screen before the unextended            library does.  Thenew_prescrfunction is used internally to            handle these cases.  It is also provided as an entrypoint to            allow applications to customize the library initialization.

NOTES        top

       This extension introduces some new names:       NCURSES_SP_FUNCS            This is set to the library patch-level number.  In the unex‐            tended library, this is zero (0), to make it useful for            checking if the extension is provided.       NCURSES_SP_NAME            The new functions are named using the macroNCURSES_SP_NAME,            which hides the actual implementation.  Currently this adds a            “_sp” suffix to the name of the unextended function.  This            manual page indexes the extensions showing the full name.            However the proper usage of these functions uses the macro,            to provide for the possibility of changing the naming conven‐            tion for specific library configurations.       NCURSES_SP_OUTC            This is a new function-pointer type to use in the screen-            pointer functions where anNCURSES_OUTC is used in the unex‐            tended library.       NCURSES_OUTC            This is a function-pointer type used for the cases where a            function passes characters to the output stream, e.g.,vid‐puts(3X).

PORTABILITY        top

       These routines are specific to ncurses.  They were not supported       on Version 7, BSD or System V implementations.  It is recommended       that any code depending on ncurses extensions be conditioned usingNCURSES_SP_FUNCS.

SEE ALSO        top

curses(3X),curs_opaque(3X),curs_threads(3X).

COLOPHON        top

       This page is part of thencurses (new curses) project.  Informa‐       tion about the project can be found at        ⟨https://www.gnu.org/software/ncurses/ncurses.html⟩.  If you have a       bug report for this manual page, send it to       bug-ncurses-request@gnu.org.  This page was obtained from the       project's upstream Git mirror of the CVS repository       ⟨https://github.com/mirror/ncurses.git⟩ on 2025-08-11.  (At that       time, the date of the most recent commit that was found in the       repository was 2023-03-12.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.orgcurs_sp_funcs(3X)


HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp