frontend
Preparing search index...
hooks/useCliMode
useCliMode
Function useCliMode
useCliMode
(
gameName
:
string
,
)
:
{
addError
:
(
text
:
string
)
=>
void
;
addInput
:
(
text
:
string
)
=>
void
;
addOutput
:
(
text
:
string
)
=>
void
;
clearLog
:
()
=>
void
;
cliEnabled
:
boolean
;
logEntries
:
CliLogEntry
[]
;
toggleCli
:
()
=>
void
;
}
Hook that manages CLI mode state and terminal log entries.
Parameters
gameName
:
string
Returns
{
addError
:
(
text
:
string
)
=>
void
;
addInput
:
(
text
:
string
)
=>
void
;
addOutput
:
(
text
:
string
)
=>
void
;
clearLog
:
()
=>
void
;
cliEnabled
:
boolean
;
logEntries
:
CliLogEntry
[]
;
toggleCli
:
()
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that manages CLI mode state and terminal log entries.