SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:
[legend]
Collaboration diagram for SourceXtractor::Screen:
[legend]

Public Member Functions

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

Private Attributes

short m_color_idx = 1
 
SCREEN * m_screen
 
rl_voidfunc_t * m_old_redisplay
 

Detailed Description

Wrap the terminal into a singleton.

Definition at line 109 of file ProgressNCurses.cpp.

Constructor & Destructor Documentation

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

Initialize the ncurses screen

Parameters
outfdFile descriptor to use for output
infdFile descriptor to use for input

Definition at line 119 of file ProgressNCurses.cpp.

References std::generic_category(), SourceXtractor::handleContinuationSignal(), SourceXtractor::handleResizeSignal(), SourceXtractor::handleStopSignal(), SourceXtractor::handleTerminatingSignal(), m_old_redisplay, m_screen, SourceXtractor::override_rl_display(), SourceXtractor::prev_signal, SourceXtractor::signal_fds, and SourceXtractor::sigwich_action.

Here is the call graph for this function:

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

Exit the ncurses mode

Definition at line 187 of file ProgressNCurses.cpp.

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

Member Function Documentation

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

Return a new color pair with the given foreground and background

Definition at line 207 of file ProgressNCurses.cpp.

References m_color_idx.

Referenced by SourceXtractor::ProgressNCurses::Dashboard::ncursesMode().

Member Data Documentation

short SourceXtractor::Screen::m_color_idx = 1
private

Definition at line 213 of file ProgressNCurses.cpp.

Referenced by initColor().

rl_voidfunc_t* SourceXtractor::Screen::m_old_redisplay
private

Definition at line 215 of file ProgressNCurses.cpp.

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

SCREEN* SourceXtractor::Screen::m_screen
private

Definition at line 214 of file ProgressNCurses.cpp.

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


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