GOLDEN HOUR
DIR: /usr/include
UP
UPLOAD
Name
Size
Action
FlexLexer.h
6.73 KB
DEL
[ GL ]
-
DEL
[ X11 ]
-
DEL
a.out.h
4.25 KB
DEL
aio.h
7.56 KB
DEL
aliases.h
1.98 KB
DEL
alloca.h
1.17 KB
DEL
ar.h
1.69 KB
DEL
argp.h
24.95 KB
DEL
argz.h
5.91 KB
DEL
[ arpa ]
-
DEL
[ asm ]
-
DEL
[ asm-generic ]
-
DEL
assert.h
4.46 KB
DEL
autosprintf.h
2.36 KB
DEL
[ bind9 ]
-
DEL
[ bits ]
-
DEL
[ blkid ]
-
DEL
[ brotli ]
-
DEL
[ bsock ]
-
DEL
byteswap.h
1.42 KB
DEL
bzlib.h
6.09 KB
DEL
[ c++ ]
-
DEL
com_err.h
2.07 KB
DEL
complex.h
7.95 KB
DEL
cpio.h
2.21 KB
DEL
cpuidle.h
931 B
DEL
crypt.h
10.9 KB
DEL
ctype.h
10.71 KB
DEL
[ curl ]
-
DEL
curses.h
96.82 KB
DEL
cursesapp.h
7.06 KB
DEL
cursesf.h
27.37 KB
DEL
cursesm.h
19.44 KB
DEL
cursesp.h
8.55 KB
DEL
cursesw.h
49.13 KB
DEL
cursslk.h
7.15 KB
DEL
dbm.h
1.37 KB
DEL
dirent.h
12.32 KB
DEL
dlfcn.h
8.38 KB
DEL
[ drm ]
-
DEL
[ e2p ]
-
DEL
elf.h
178.26 KB
DEL
endian.h
2.25 KB
DEL
entities.h
4.81 KB
DEL
envz.h
2.8 KB
DEL
err.h
2.29 KB
DEL
errno.h
1.64 KB
DEL
error.h
2.36 KB
DEL
[ et ]
-
DEL
eti.h
2.9 KB
DEL
etip.h
9.61 KB
DEL
evdns.h
1.97 KB
DEL
event.h
2.68 KB
DEL
[ event2 ]
-
DEL
evhttp.h
1.99 KB
DEL
evrpc.h
1.97 KB
DEL
evutil.h
1.74 KB
DEL
execinfo.h
1.49 KB
DEL
expat.h
43.24 KB
DEL
expat_config.h
3.82 KB
DEL
expat_external.h
5.89 KB
DEL
[ ext2fs ]
-
DEL
fcntl.h
11.17 KB
DEL
features-time64.h
1.37 KB
DEL
features.h
17.69 KB
DEL
fenv.h
5.65 KB
DEL
ffi-x86_64.h
13.88 KB
DEL
ffi.h
556 B
DEL
ffitarget-x86_64.h
4.63 KB
DEL
ffitarget.h
616 B
DEL
[ finclude ]
-
DEL
fmtmsg.h
3.16 KB
DEL
fnmatch.h
2.24 KB
DEL
[ fontconfig ]
-
DEL
form.h
18.46 KB
DEL
fpu_control.h
3.5 KB
DEL
[ freetype2 ]
-
DEL
fstab.h
3.04 KB
DEL
[ fstrm ]
-
DEL
fstrm.h
12.71 KB
DEL
fts.h
9.35 KB
DEL
ftw.h
6.19 KB
DEL
[ fwctl ]
-
DEL
gconv.h
4.11 KB
DEL
gd.h
58.25 KB
DEL
gd_color_map.h
478 B
DEL
gd_errors.h
1.47 KB
DEL
gd_io.h
2.93 KB
DEL
[ gdbm ]
-
DEL
gdbm.h
11.9 KB
DEL
gdcache.h
2.92 KB
DEL
gdfontg.h
553 B
DEL
gdfontl.h
551 B
DEL
gdfontmb.h
519 B
DEL
gdfonts.h
515 B
DEL
gdfontt.h
546 B
DEL
gdfx.h
496 B
DEL
gdpp.h
50.73 KB
DEL
getopt.h
1.43 KB
DEL
gettext-po.h
15.18 KB
DEL
[ gio-unix-2.0 ]
-
DEL
[ glib-2.0 ]
-
DEL
glob.h
7.13 KB
DEL
[ gnu ]
-
DEL
gnu-versions.h
2.29 KB
DEL
gnumake.h
2.84 KB
DEL
[ google ]
-
DEL
gpg-error.h
71.92 KB
DEL
gpgrt.h
71.92 KB
DEL
[ graphite2 ]
-
DEL
grp.h
6.53 KB
DEL
gshadow.h
4.42 KB
DEL
[ gssapi ]
-
DEL
gssapi.h
181 B
DEL
[ gssrpc ]
-
DEL
[ harfbuzz ]
-
DEL
iconv.h
1.81 KB
DEL
idn-free.h
2.56 KB
DEL
idn-int.h
20 B
DEL
idna.h
3.89 KB
DEL
ieee754.h
4.8 KB
DEL
ifaddrs.h
2.77 KB
DEL
inttypes.h
8.14 KB
DEL
jconfig-64.h
1.98 KB
DEL
jconfig.h
246 B
DEL
jerror.h
15.35 KB
DEL
jmorecfg.h
13.98 KB
DEL
jpegint.h
15.25 KB
DEL
jpeglib.h
49.1 KB
DEL
[ json-c ]
-
DEL
[ kadm5 ]
-
DEL
kdb.h
62.83 KB
DEL
keyutils.h
11.52 KB
DEL
krad.h
8.72 KB
DEL
[ krb5 ]
-
DEL
krb5.h
402 B
DEL
langinfo.h
17.43 KB
DEL
lastlog.h
126 B
DEL
libaio.h
8.75 KB
DEL
[ libexslt ]
-
DEL
libgen.h
1.35 KB
DEL
libintl.h
4.47 KB
DEL
[ libltdl ]
-
DEL
[ libmount ]
-
DEL
[ libpng16 ]
-
DEL
libtasn1.h
15.05 KB
DEL
[ libxml2 ]
-
DEL
[ libxslt ]
-
DEL
limits.h
5.57 KB
DEL
link.h
7.62 KB
DEL
[ linux ]
-
DEL
lmdb.h
72.28 KB
DEL
locale.h
7.5 KB
DEL
ltdl.h
5.58 KB
DEL
[ lve ]
-
DEL
[ lzma ]
-
DEL
lzma.h
9.63 KB
DEL
malloc.h
5.77 KB
DEL
math.h
47.63 KB
DEL
maxminddb.h
8.34 KB
DEL
maxminddb_config-64.h
504 B
DEL
maxminddb_config.h
178 B
DEL
mcheck.h
2.38 KB
DEL
memory.h
956 B
DEL
menu.h
11.6 KB
DEL
[ misc ]
-
DEL
mntent.h
3.28 KB
DEL
monetary.h
1.92 KB
DEL
mqueue.h
4.5 KB
DEL
[ mtd ]
-
DEL
[ mysql ]
-
DEL
nc_tparm.h
4.67 KB
DEL
[ ncurses ]
-
DEL
ncurses.h
96.82 KB
DEL
ncurses_dll.h
3.95 KB
DEL
[ ncursesw ]
-
DEL
ndbm.h
2.39 KB
DEL
[ net ]
-
DEL
[ netash ]
-
DEL
[ netatalk ]
-
DEL
[ netax25 ]
-
DEL
netdb.h
27.79 KB
DEL
[ neteconet ]
-
DEL
[ netinet ]
-
DEL
[ netipx ]
-
DEL
[ netiucv ]
-
DEL
[ netpacket ]
-
DEL
[ netrom ]
-
DEL
[ netrose ]
-
DEL
[ nfs ]
-
DEL
nl_types.h
1.71 KB
DEL
nss.h
14.07 KB
DEL
obstack.h
20.81 KB
DEL
[ openssl ]
-
DEL
panel.h
4.41 KB
DEL
paths.h
2.91 KB
DEL
[ pcp ]
-
DEL
pcre.h
30.97 KB
DEL
pcre2.h
46.15 KB
DEL
pcre2posix.h
6.52 KB
DEL
pcre_scanner.h
6.45 KB
DEL
pcre_stringpiece.h
6.16 KB
DEL
pcrecpp.h
25.91 KB
DEL
pcrecpparg.h
6.62 KB
DEL
pcreposix.h
5.74 KB
DEL
png.h
139.51 KB
DEL
pngconf.h
22.31 KB
DEL
pnglibconf.h
7.43 KB
DEL
poll.h
22 B
DEL
powercap.h
1.62 KB
DEL
pr29.h
2.19 KB
DEL
printf.h
6.71 KB
DEL
proc_service.h
3.4 KB
DEL
profile.h
11.87 KB
DEL
[ protobuf-c ]
-
DEL
[ protocols ]
-
DEL
pthread.h
47.39 KB
DEL
pty.h
1.53 KB
DEL
punycode.h
9.3 KB
DEL
pwd.h
6.17 KB
DEL
[ python3.9 ]
-
DEL
[ rdma ]
-
DEL
re_comp.h
963 B
DEL
regex.h
25.3 KB
DEL
regexp.h
1.41 KB
DEL
resolv.h
12.1 KB
DEL
[ rpc ]
-
DEL
sched.h
4.92 KB
DEL
[ scsi ]
-
DEL
search.h
5.32 KB
DEL
[ security ]
-
DEL
[ selinux ]
-
DEL
semaphore.h
3.38 KB
DEL
[ sepol ]
-
DEL
setjmp.h
3.12 KB
DEL
sgtty.h
1.31 KB
DEL
shadow.h
5.34 KB
DEL
signal.h
12.73 KB
DEL
[ sound ]
-
DEL
spawn.h
8.1 KB
DEL
stab.h
264 B
DEL
stdc-predef.h
2.24 KB
DEL
stdint.h
8.28 KB
DEL
stdio.h
30.67 KB
DEL
stdio_ext.h
2.73 KB
DEL
stdlib.h
35.46 KB
DEL
string.h
19 KB
DEL
stringprep.h
9.53 KB
DEL
strings.h
4.64 KB
DEL
[ sys ]
-
DEL
syscall.h
25 B
DEL
sysexits.h
5.11 KB
DEL
syslog.h
24 B
DEL
[ sysprof-4 ]
-
DEL
tar.h
3.7 KB
DEL
term.h
40.95 KB
DEL
term_entry.h
8.9 KB
DEL
termcap.h
3.39 KB
DEL
termio.h
214 B
DEL
termios.h
3.51 KB
DEL
tgmath.h
39.24 KB
DEL
thread_db.h
15.65 KB
DEL
threads.h
7.51 KB
DEL
tic.h
14.48 KB
DEL
tiff.h
46.33 KB
DEL
tiffconf-64.h
3.19 KB
DEL
tiffconf.h
250 B
DEL
tiffio.h
24.13 KB
DEL
tiffio.hxx
1.62 KB
DEL
tiffvers.h
410 B
DEL
time.h
14.5 KB
DEL
tld.h
4.85 KB
DEL
ttyent.h
2.44 KB
DEL
uchar.h
1.96 KB
DEL
ucontext.h
1.99 KB
DEL
ulimit.h
1.55 KB
DEL
unctrl.h
3.1 KB
DEL
[ unicode ]
-
DEL
unistd.h
43.45 KB
DEL
utime.h
1.86 KB
DEL
utmp.h
3.15 KB
DEL
utmpx.h
4 KB
DEL
values.h
1.91 KB
DEL
verto-module.h
6.48 KB
DEL
verto.h
18.98 KB
DEL
[ video ]
-
DEL
wait.h
22 B
DEL
wchar.h
31.39 KB
DEL
wctype.h
5.42 KB
DEL
[ webp ]
-
DEL
wordexp.h
2.44 KB
DEL
[ xcb ]
-
DEL
[ xen ]
-
DEL
zconf.h
15.88 KB
DEL
zlib.h
94 KB
DEL
Edit: cursesp.h
// * This makes emacs happy -*-Mode: C++;-*- // vile:cppmode /**************************************************************************** * Copyright 2019-2020,2021 Thomas E. Dickey * * Copyright 1998-2012,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ /**************************************************************************** * Author: Juergen Pfeifer, 1997 * ****************************************************************************/ #ifndef NCURSES_CURSESP_H_incl #define NCURSES_CURSESP_H_incl 1 // $Id: cursesp.h,v 1.35 2021/04/17 18:11:08 tom Exp $ #include <cursesw.h> extern "C" { # include <panel.h> } class NCURSES_CXX_IMPEXP NCursesPanel : public NCursesWindow { protected: PANEL *p; static NCursesPanel *dummy; private: // This structure is used for the panel's user data field to link the // PANEL* to the C++ object and to provide extra space for a user pointer. typedef struct { void* m_user; // the pointer for the user's data const NCursesPanel* m_back; // backward pointer to C++ object const PANEL* m_owner; // the panel itself } UserHook; inline UserHook *UserPointer() { UserHook* uptr = reinterpret_cast<UserHook*>( const_cast<void *>(::panel_userptr (p))); return uptr; } void init(); // Initialize the panel object protected: void set_user(void *user) { UserHook* uptr = UserPointer(); if (uptr != 0 && uptr->m_back==this && uptr->m_owner==p) { uptr->m_user = user; } } // Set the user pointer of the panel. void *get_user() { UserHook* uptr = UserPointer(); void *result = 0; if (uptr != 0 && uptr->m_back==this && uptr->m_owner==p) result = uptr->m_user; return result; } void OnError (int err) const THROW2(NCursesException const, NCursesPanelException) { if (err==ERR) THROW(new NCursesPanelException (this, err)); } // If err is equal to the curses error indicator ERR, an error handler // is called. // Get a keystroke. Default implementation calls getch() virtual int getKey(void); public: NCursesPanel(int nlines, int ncols, int begin_y = 0, int begin_x = 0) : NCursesWindow(nlines,ncols,begin_y,begin_x), p(0) { init(); } // Create a panel with this size starting at the requested position. NCursesPanel() : NCursesWindow(::stdscr), p(0) { init(); } // This constructor creates the default Panel associated with the // ::stdscr window NCursesPanel& operator=(const NCursesPanel& rhs) { if (this != &rhs) { *this = rhs; NCursesWindow::operator=(rhs); } return *this; } NCursesPanel(const NCursesPanel& rhs) : NCursesWindow(rhs), p(rhs.p) { } virtual ~NCursesPanel() THROWS(NCursesException); // basic manipulation inline void hide() { OnError (::hide_panel(p)); } // Hide the panel. It stays in the stack but becomes invisible. inline void show() { OnError (::show_panel(p)); } // Show the panel, i.e. make it visible. inline void top() { OnError (::top_panel(p)); } // Make this panel the top panel in the stack. inline void bottom() { OnError (::bottom_panel(p)); } // Make this panel the bottom panel in the stack. // N.B.: The panel associated with ::stdscr is always on the bottom. So // actually bottom() makes the panel the first above ::stdscr. virtual int mvwin(int y, int x) { OnError(::move_panel(p, y, x)); return OK; } inline bool hidden() const { return (::panel_hidden (p) ? TRUE : FALSE); } // Return TRUE if the panel is hidden, FALSE otherwise. /* The functions panel_above() and panel_below() are not reflected in the NCursesPanel class. The reason for this is, that we cannot assume that a panel retrieved by those operations is one wrapped by a C++ class. Although this situation might be handled, we also need a reverse mapping from PANEL to NCursesPanel which needs some redesign of the low level stuff. At the moment, we define them in the interface but they will always produce an error. */ inline NCursesPanel& above() const { OnError(ERR); return *dummy; } inline NCursesPanel& below() const { OnError(ERR); return *dummy; } // Those two are rewrites of the corresponding virtual members of // NCursesWindow virtual int refresh(); // Propagate all panel changes to the virtual screen and update the // physical screen. virtual int noutrefresh(); // Propagate all panel changes to the virtual screen. static void redraw(); // Redraw all panels. // decorations virtual void frame(const char* title=NULL, const char* btitle=NULL); // Put a frame around the panel and put the title centered in the top line // and btitle in the bottom line. virtual void boldframe(const char* title=NULL, const char* btitle=NULL); // Same as frame(), but use highlighted attributes. virtual void label(const char* topLabel, const char* bottomLabel); // Put the title centered in the top line and btitle in the bottom line. virtual void centertext(int row,const char* label); // Put the label text centered in the specified row. }; /* We use templates to provide a typesafe mechanism to associate * user data with a panel. A NCursesUserPanel<T> is a panel * associated with some user data of type T. */ template<class T> class NCursesUserPanel : public NCursesPanel { public: NCursesUserPanel (int nlines, int ncols, int begin_y = 0, int begin_x = 0, const T* p_UserData = STATIC_CAST(T*)(0)) : NCursesPanel (nlines, ncols, begin_y, begin_x) { if (p) set_user (const_cast<void *>(reinterpret_cast<const void*> (p_UserData))); }; // This creates an user panel of the requested size with associated // user data pointed to by p_UserData. explicit NCursesUserPanel(const T* p_UserData = STATIC_CAST(T*)(0)) : NCursesPanel() { if (p) set_user(const_cast<void *>(reinterpret_cast<const void*>(p_UserData))); }; // This creates an user panel associated with the ::stdscr and user data // pointed to by p_UserData. virtual ~NCursesUserPanel() THROWS(NCursesException) {}; T* UserData (void) { return reinterpret_cast<T*>(get_user ()); }; // Retrieve the user data associated with the panel. virtual void setUserData (const T* p_UserData) { if (p) set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData))); } // Associate the user panel with the user data pointed to by p_UserData. }; #endif /* NCURSES_CURSESP_H_incl */
SAVE FILE
TERMINAL
EXEC