Function: tty--set-output-buffer-size
tty--set-output-buffer-size is a function defined in term.c.
Signature
(tty--set-output-buffer-size SIZE &optional TTY)
Documentation
Set the output buffer size for a TTY.
SIZE zero means use the system's default value. If SIZE is non-zero, this also avoids flushing the output stream.
TTY may be a terminal object, a frame, or nil (meaning the selected frame's terminal).
This function temporarily suspends and resumes the terminal device.
Probably introduced at or before Emacs version 29.1.
Source Code
// Defined in /usr/src/emacs/src/term.c
{
if (!TYPE_RANGED_FIXNUMP (size_t, size))
error ("Invalid output buffer size");
Fsuspend_tty (tty);
struct terminal *terminal = decode_tty_terminal (tty);
terminal->display_info.tty->output_buffer_size = XFIXNUM (size);
return Fresume_tty (tty);
}