|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
Wrap the terminal into a singleton. More...


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 |
Wrap the terminal into a singleton.
Definition at line 113 of file ProgressNCurses.cpp.
Initialize the ncurses screen
| outfd | File descriptor to use for output |
| infd | File descriptor to use for input |
Definition at line 123 of file ProgressNCurses.cpp.
References std::generic_category(), SourceXtractor::handleContinuationSignal(), SourceXtractor::handleResizeSignal(), SourceXtractor::handleStopSignal(), SourceXtractor::handleTerminatingSignal(), m_old_redisplay, m_screen, std::memset(), SourceXtractor::override_rl_display(), SourceXtractor::prev_signal, SourceXtractor::sigcont_action, SourceXtractor::signal_fds, SourceXtractor::sigstop_action, SourceXtractor::sigterm_action, and SourceXtractor::sigwich_action.

|
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.
Return a new color pair with the given foreground and background
Definition at line 211 of file ProgressNCurses.cpp.
References m_color_idx.
|
private |
Definition at line 217 of file ProgressNCurses.cpp.
Referenced by initColor().
|
private |
Definition at line 219 of file ProgressNCurses.cpp.
|
private |
Definition at line 218 of file ProgressNCurses.cpp.