Add an option to control the input buffer size, from Ken Lau.

This commit is contained in:
nicm
2024-11-11 08:41:05 +00:00
parent 596ea62dc3
commit c26d71d3e9
5 changed files with 28 additions and 2 deletions

View File

@ -348,6 +348,15 @@ const struct options_table_entry options_table[] = {
"Empty does not write a history file."
},
{ .name = "input-buffer-size",
.type = OPTIONS_TABLE_NUMBER,
.scope = OPTIONS_TABLE_SERVER,
.minimum = INPUT_BUF_DEFAULT_SIZE,
.maximum = UINT_MAX,
.default_num = INPUT_BUF_DEFAULT_SIZE,
.text = "Number of byte accpted in a single input before dropping."
},
{ .name = "menu-style",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,