Limit terminal input to 42 characters

This commit is contained in:
2025-12-24 17:00:36 +00:00
parent c96c18b9aa
commit 3cdab08184
3 changed files with 3 additions and 17 deletions
+1
View File
@@ -409,6 +409,7 @@ updateKeysTextInputTerminal tmid u =
(uvWorld . cWorld . lWorld . terminals . ix tmid . tmStatus . tiText)
& checkEndStatus
& tryTabComplete
& uvWorld . cWorld . lWorld . terminals . ix tmid . tmStatus . tiText %~ take 42
where
checkEndStatus
| u ^. uvWorld . input . pressedKeys . at ScancodeReturn == Just 0 =