TICKIT_TERM_SET_OUTPUT_BUFFER(3)

✨ NAME ✨

omg hey bestie πŸ’– welcome to the Library Functions Manual page TICKIT_TER...TPUT_BUFFER(3). the main character? tickit_term_set_output_buffer β€” define a terminal output buffer. no cap, it's giving terminal-buffer realness. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_term_set_output_buffer(TickitTerm *tt, size_t len);

Link with -ltickit.

🌸 DESCRIPTION 🌸

okay so tickit_term_set_output_buffer() sets up an output buffer of the given size, bestie. it's there to store output bytes pending being written to the output file descriptor, or using the output function. The value 0 may be given to indicate that no buffer should be used. and this buffer is not directly accessible, so don't even try to peek, iykyk. πŸ™ˆ

If a buffer is defined, then none of the drawing functions will immediately create output either to the file descriptor or the output function. Instead, they will append into the buffer, to be flushed by calling tickit_term_flush(3). If the buffer fills completely as a result of being written to by a drawing function, it will be flushed to the appropriate output method. that's the whole vibe β€” buffered until flush o'clock. πŸ’…

πŸ’– RETURN VALUE πŸ’–

tickit_term_set_output_buffer() returns no value. literally nothing, fr fr. no return value era. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

go read those next, bestie 🫢


okay bye bestie β€” that was the Library Functions Manual page TICKIT_TER...TPUT_BUFFER(3) πŸ’–