GDB (xrefs)
|
#include "pager.h"
Public Member Functions | |
pager_file (ui_file *stream) | |
~pager_file () | |
DISABLE_COPY_AND_ASSIGN (pager_file) | |
void | write (const char *buf, long length_buf) override |
void | puts (const char *str) override |
void | write_async_safe (const char *buf, long length_buf) override |
void | emit_style_escape (const ui_file_style &style) override |
void | reset_style () override |
void | flush () override |
void | wrap_here (int indent) override |
void | puts_unfiltered (const char *str) override |
![]() | |
bool | isatty () override |
bool | term_out () override |
bool | can_emit_style_escape () override |
void | flush () override |
void | wrap_here (int indent) override |
void | emit_style_escape (const ui_file_style &style) override |
void | reset_style () override |
int | fd () const override |
void | puts_unfiltered (const char *str) override |
void | write_async_safe (const char *buf, long length_buf) override |
![]() | |
ui_file () | |
virtual | ~ui_file ()=0 |
ui_file (ui_file &&other)=default | |
void | printf (const char *,...) ATTRIBUTE_PRINTF(2 |
void void | putstr (const char *str, int quoter) |
void | putstrn (const char *str, int n, int quoter, bool async_safe=false) |
void | putc (int c) |
void | vprintf (const char *, va_list) ATTRIBUTE_PRINTF(2 |
virtual long | read (char *buf, long length_buf) |
Private Member Functions | |
void | prompt_for_continue () |
void | flush_wrap_buffer () |
Private Attributes | |
std::string | m_wrap_buffer |
int | m_wrap_indent = 0 |
int | m_wrap_column = 0 |
ui_file_style | m_wrap_style |
bool | m_paging = false |
Additional Inherited Members | |
![]() | |
wrapped_file (ui_file *stream) | |
![]() | |
ui_file * | m_stream |
![]() | |
ui_file_style | m_applied_style |
|
inline |
Definition at line 36 of file pager.h.
References wrapped_file::m_stream.
pager_file::DISABLE_COPY_AND_ASSIGN | ( | pager_file | ) |
|
overridevirtual |
Reimplemented from ui_file.
Definition at line 1359 of file utils.c.
References wrapped_file::can_emit_style_escape(), ui_file::emit_style_escape(), ui_file::m_applied_style, m_paging, wrapped_file::m_stream, and m_wrap_buffer.
|
overridevirtual |
Reimplemented from ui_file.
Definition at line 1489 of file utils.c.
References ui_file::flush(), flush_wrap_buffer(), and wrapped_file::m_stream.
|
private |
Definition at line 1479 of file utils.c.
References m_paging, wrapped_file::m_stream, m_wrap_buffer, and ui_file::puts().
Referenced by flush(), puts(), puts_unfiltered(), and wrap_here().
|
private |
Definition at line 1389 of file utils.c.
References annotation_level, dont_repeat(), ui_file::emit_style_escape(), gdb_readline_wrapper(), m_paging, wrapped_file::m_stream, pagination_disabled_for_command, prompt_for_continue_wait_time, ui_file::puts(), and reinitialize_more_filter().
Referenced by puts().
|
overridevirtual |
Reimplemented from ui_file.
Definition at line 1598 of file utils.c.
References batch_flag, chars_per_line, chars_printed, ui_file::emit_style_escape(), flush_wrap_buffer(), lines_per_page, lines_printed, ui_file::m_applied_style, wrapped_file::m_stream, m_wrap_buffer, m_wrap_column, m_wrap_indent, m_wrap_style, n_spaces(), pagination_disabled_for_command, pagination_enabled, prompt_for_continue(), ui_file::puts(), skip_ansi_escape(), top_level_interpreter(), and wrap_here().
Referenced by wrap_here(), and write().
|
inlineoverridevirtual |
Reimplemented from ui_file.
Definition at line 59 of file pager.h.
References flush_wrap_buffer(), wrapped_file::m_stream, and ui_file::puts_unfiltered().
|
overridevirtual |
Reimplemented from ui_file.
Definition at line 1374 of file utils.c.
References wrapped_file::can_emit_style_escape(), ui_file::m_applied_style, m_wrap_buffer, and ui_file_style::to_ansi().
|
overridevirtual |
Reimplemented from ui_file.
Definition at line 1514 of file utils.c.
References chars_per_line, chars_printed, filter_initialized, flush_wrap_buffer(), ui_file::m_applied_style, m_wrap_column, m_wrap_indent, m_wrap_style, n_spaces(), and puts().
Referenced by puts().
|
overridevirtual |
Implements ui_file.
Definition at line 1765 of file utils.c.
References puts().
Referenced by gdb._GdbFile::writelines().
|
inlineoverridevirtual |
Reimplemented from ui_file.
Definition at line 47 of file pager.h.
References wrapped_file::m_stream, and ui_file::write_async_safe().
|
private |
Definition at line 88 of file pager.h.
Referenced by emit_style_escape(), flush_wrap_buffer(), and prompt_for_continue().
|
private |
Definition at line 74 of file pager.h.
Referenced by emit_style_escape(), flush_wrap_buffer(), puts(), and reset_style().
|
private |
Definition at line 81 of file pager.h.
Referenced by puts(), and wrap_here().
|
private |
Definition at line 77 of file pager.h.
Referenced by puts(), and wrap_here().
|
private |
Definition at line 84 of file pager.h.
Referenced by puts(), and wrap_here().