SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SourceXtractor::Screen Class Reference

Wrap the terminal into a singleton. More...

Inheritance diagram for SourceXtractor::Screen:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::Screen:
Collaboration graph
[legend]

Public Member Functions

 Screen (FILE *outfd, FILE *infd)
 
virtual ~Screen ()
 
short initColor (short fg, short bg)
 

Private Attributes

short m_color_idx = 1
 
SCREENm_screen
 
rl_voidfunc_tm_old_redisplay
 

Detailed Description

Wrap the terminal into a singleton.

Definition at line 113 of file ProgressNCurses.cpp.

Constructor & Destructor Documentation

◆ Screen()

SourceXtractor::Screen::Screen ( FILE * outfd,
FILE * infd )
inline

◆ ~Screen()

virtual SourceXtractor::Screen::~Screen ( )
inlinevirtual

Exit the ncurses mode

Definition at line 191 of file ProgressNCurses.cpp.

References m_old_redisplay, m_screen, SourceXtractor::prev_signal, and SourceXtractor::signal_fds.

Member Function Documentation

◆ initColor()

short SourceXtractor::Screen::initColor ( short fg,
short bg )
inline

Return a new color pair with the given foreground and background

Definition at line 211 of file ProgressNCurses.cpp.

References m_color_idx.

Member Data Documentation

◆ m_color_idx

short SourceXtractor::Screen::m_color_idx = 1
private

Definition at line 217 of file ProgressNCurses.cpp.

Referenced by initColor().

◆ m_old_redisplay

rl_voidfunc_t* SourceXtractor::Screen::m_old_redisplay
private

Definition at line 219 of file ProgressNCurses.cpp.

Referenced by Screen(), and ~Screen().

◆ m_screen

SCREEN* SourceXtractor::Screen::m_screen
private

Definition at line 218 of file ProgressNCurses.cpp.

Referenced by Screen(), and ~Screen().


The documentation for this class was generated from the following file: