summaryrefslogtreecommitdiffstats
path: root/rsnix/src/tty.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rsnix/src/tty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/rsnix/src/tty.rs b/rsnix/src/tty.rs
index 81a7a24..7304925 100644
--- a/rsnix/src/tty.rs
+++ b/rsnix/src/tty.rs
@@ -17,7 +17,10 @@ use crate::ps2::{self, KeyEvent};
17use crate::strbuf; 17use crate::strbuf;
18use crate::{gop, serial}; 18use crate::{gop, serial};
19 19
20pub const LINE_BUF_SIZE: usize = 256; 20/// Max characters a single typed line can hold. Long enough that no
21/// realistic command line gets silently cut — the terminal wraps the
22/// echo at the screen edge, and the full line is what's submitted.
23pub const LINE_BUF_SIZE: usize = 1024;
21 24
22/// Result of one canonical line-input session. 25/// Result of one canonical line-input session.
23#[allow(clippy::large_enum_variant)] // stack buffer by design (no heap churn) 26#[allow(clippy::large_enum_variant)] // stack buffer by design (no heap churn)