Properties
Protected
active
active: boolean = false
Protected
cursor
cursor: number = 0
Readonly
game
Protected
line
line: string = ""
Readonly
session
Readonly
stream
Methods
Protected
allowCtrlCClose
- allowCtrlCClose(): boolean
-
Returns boolean
allowHistory
- allowHistory(): void
-
Returns void
displayMessage
- displayMessage(_: default, message: IMessage): void
-
Returns void
executeWithMessageRedirect
- executeWithMessageRedirect(executor: (() => Promise<void>)): Promise<void>
-
Parameters
-
executor: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
Returns Promise<void>
flush
- flush(): void
-
Returns void
processData
- processData(data: string): Promise<undefined | false | default>
-
Returns Promise<undefined | false | default>
Abstract
processLine
- processLine(line: string): Promise<undefined | false | default>
-
Returns Promise<undefined | false | default>
start
- start(): Promise<boolean>
-
Returns Promise<boolean>
stop
- stop(): void
-
Returns void
write
- write(data: string): void
-
Returns void
Abstract
writeMarker
- writeMarker(): void
-
Returns void
Check if Ctrl+C is allowed to close the shell
Returns
True if you want ctrl+c to close the shell