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
-15
View File
@@ -4,7 +4,6 @@ module Dodge.Render.List (
renderListAt,
drawList,
drawSelectionList,
drawSelectionListBackground,
drawListYgapScaleYoff,
drawListElement,
dShadCol,
@@ -55,20 +54,6 @@ drawTitleBackground cfig =
. reverse
$ rectNSWE 70 0 0 560
drawSelectionListBackground ::
LDParams ->
Config ->
Int -> -- list length
Picture
drawSelectionListBackground ldp cfig l =
translateScreenPos cfig (ldp ^. ldpPos)
. polygon
. reverse
$ rectNSWE 5 s (-5) e
where
s = -(5 + fromIntegral l * (20 * ldp ^. ldpScale + ldp ^. ldpVerticalGap))
e = 555 -- HACK isOverTerminalScreen
makeSelectionListPictures :: [SelectionItem a] -> [Picture]
makeSelectionListPictures = concatMap f
where