|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Dynamic Output Buffer with ANSI Sequence Support. More...
Go to the source code of this file.
Data Structures | |
| struct | outbuf_t |
| Dynamic output buffer (auto-expanding) More... | |
Functions | |
| void | ob_reserve (outbuf_t *ob, size_t need) |
| Reserve buffer space for upcoming writes. | |
| void | ob_putc (outbuf_t *ob, char c) |
| Append a character to buffer. | |
| void | ob_write (outbuf_t *ob, const char *s, size_t n) |
| Append a string to buffer. | |
| void | ob_term (outbuf_t *ob) |
| Append null terminator to buffer. | |
| void | ob_u8 (outbuf_t *ob, uint8_t v) |
| Append unsigned 8-bit integer as decimal string. | |
| void | ob_u32 (outbuf_t *ob, uint32_t v) |
| Append unsigned 32-bit integer as decimal string. | |
| void | emit_set_truecolor_fg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| Emit truecolor foreground ANSI sequence. | |
| void | emit_set_truecolor_bg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| Emit truecolor background ANSI sequence. | |
| void | emit_set_256_color_fg (outbuf_t *ob, uint8_t color_idx) |
| Emit 256-color foreground ANSI sequence. | |
| void | emit_set_256_color_bg (outbuf_t *ob, uint8_t color_idx) |
| Emit 256-color background ANSI sequence. | |
| void | emit_reset (outbuf_t *ob) |
| Emit ANSI reset sequence. | |
| bool | rep_is_profitable (uint32_t runlen) |
| Check if run-length encoding is profitable. | |
| void | emit_rep (outbuf_t *ob, uint32_t extra) |
| Emit run-length encoded sequence. | |
| void | emit_set_fg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| Emit foreground color sequence (auto-select mode) | |
| void | emit_set_bg (outbuf_t *ob, uint8_t r, uint8_t g, uint8_t b) |
| Emit background color sequence (auto-select mode) | |
Dynamic Output Buffer with ANSI Sequence Support.
Definition in file output_buffer.h.