Continue work on terminals
This commit is contained in:
+7
-5
@@ -110,11 +110,13 @@ tmUpdate tm w = case w ^? terminals . ix (_tmID tm) . tmFutureLines . ix 0 of
|
||||
Just (TerminalLineEffect _ eff) -> w
|
||||
& pointTermParams . tmFutureLines %~ tail
|
||||
& eff tm
|
||||
Just (TerminalLineInput _) -> w & pointTermParams %~
|
||||
( ( tmFutureLines %~ tail )
|
||||
-- . ( tmScrollCommands .~ scrollc )
|
||||
-- . ( tmWriteCommands .~ writec )
|
||||
. ( tmInput ?~ T.empty ) )
|
||||
Just (TerminalLineInput _) -> w
|
||||
& hud . hudElement . subInventory . onInputLine %~ const True
|
||||
& pointTermParams %~
|
||||
( ( tmFutureLines %~ tail )
|
||||
-- . ( tmScrollCommands .~ scrollc )
|
||||
-- . ( tmWriteCommands .~ writec )
|
||||
. ( tmInput ?~ T.empty ) )
|
||||
where
|
||||
pointTermParams = terminals . ix (_tmID tm)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user