diff options
Diffstat (limited to 'rsnix/src/tty.rs')
| -rw-r--r-- | rsnix/src/tty.rs | 5 |
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}; | |||
| 17 | use crate::strbuf; | 17 | use crate::strbuf; |
| 18 | use crate::{gop, serial}; | 18 | use crate::{gop, serial}; |
| 19 | 19 | ||
| 20 | pub 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. | ||
| 23 | pub 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) |
