Work on terminals

This commit is contained in:
2023-05-03 11:19:47 +01:00
parent 61f88aeb4a
commit ed8d8f0e93
8 changed files with 79 additions and 107 deletions
+3 -2
View File
@@ -4,7 +4,7 @@ module Dodge.Update.Input.Text (
) where
import Data.Either
import Data.Char
--import Data.Char
import Dodge.Data.Universe
import LensHelp
import SDL
@@ -14,7 +14,8 @@ doTextInputOver p u = doTextInputOver' u p u
doTextInputOver' :: Universe -> ASetter' a String -> a -> a
doTextInputOver' u p x =
x & p %~ (++ map toUpper (rights str))
--x & p %~ (++ map toUpper (rights str))
x & p %~ (++ rights str)
& checkBackspace
where
str = u ^. uvWorld . input . textInput