Simplify terminals, move towards using tries for commands

This commit is contained in:
2025-08-16 01:11:29 +01:00
parent e04d4fea31
commit 73cdf42e4a
12 changed files with 377 additions and 398 deletions
+8 -8
View File
@@ -16,9 +16,9 @@ defaultTerminal =
, _tmMachineID = 0
, _tmDisplayedLines = []
, _tmFutureLines = []
, _tmInput = defaultTerminalInput
-- , _tmInput = defaultTerminalInput
, _tmScrollCommands = []
, _tmWriteCommands = []
-- , _tmWriteCommands = []
, _tmDeathEffect = TmWdId
, _tmStatus = TerminalOff
, _tmCommandHistory = []
@@ -27,9 +27,9 @@ defaultTerminal =
, _tmExternalColor = dark magenta
}
defaultTerminalInput :: TerminalInput
defaultTerminalInput =
TerminalInput
{ -- _tiText = ""
_tiSel = (0, 0)
}
--defaultTerminalInput :: TerminalInput
--defaultTerminalInput =
-- TerminalInput
-- { -- _tiText = ""
-- _tiSel = (0, 0)
-- }