Files
src/miniquake/console.ml
- Package
miniquake.console- Reachable
- Yes
Imports
Declarations
# adjustBackscroll
function adjustBackscroll(state, delta, visibleRows)
Implements the `adjustBackscroll` operation for `miniquake.console` (adjust backscroll).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `adjustBackscroll`. |
delta | dynamic | — | The delta input consumed by `adjustBackscroll`. |
visibleRows | dynamic | — | The visible rows input consumed by `adjustBackscroll`. |
View source
# append
function append(state, text)
Implements the `append` operation for `miniquake.console` (append).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `append`. |
text | dynamic | — | Text to parse or process. |
View source
# appendCharacter
function appendCharacter(state, code)
Add state for append character.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `appendCharacter`. |
code | dynamic | — | The code input consumed by `appendCharacter`. |
View source
# appendLine
function appendLine(state, text)
Add state for append line.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `appendLine`. |
text | dynamic | — | Text to parse or process. |
View source
# backscroll
inline function backscroll()
Implements the `backscroll` operation for `miniquake.console` (backscroll).
View source
# backscrollLines
backscrollLines
Tracks the module-level backscroll lines state owned by `miniquake.console`.
View source
# backspace
function backspace(state)
Implements the `backspace` operation for `miniquake.console` (backspace).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `backspace`. |
View source
# centerPrint
function centerPrint(state, text, currentTime, duration)
Implements the `centerPrint` operation for `miniquake.console` (center print).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `centerPrint`. |
text | dynamic | — | Text to parse or process. |
currentTime | dynamic | — | Time value used by the operation. |
duration | dynamic | — | The duration input consumed by `centerPrint`. |
View source
# clear
function clear(state)
Implements the `clear` operation for `miniquake.console` (clear).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `clear`. |
View source
# clearExpiredCenter
function clearExpiredCenter(state, currentTime)
Update module state for expired center.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `clearExpiredCenter`. |
currentTime | dynamic | — | Time value used by the operation. |
View source
# Con_CancelNotifyBox
function Con_CancelNotifyBox(state)
Mirror Quake's Con_CancelNotifyBox routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_CancelNotifyBox`. |
View source
# Con_CheckResize
function Con_CheckResize(state, pixelWidth)
Mirror Quake's Con_CheckResize routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_CheckResize`. |
pixelWidth | dynamic | — | The pixel width input consumed by `Con_CheckResize`. |
View source
# Con_Clear_f
function Con_Clear_f(state)
Mirror Quake's Con_Clear_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Clear_f`. |
View source
# Con_ClearNotify
function Con_ClearNotify(state)
Mirror Quake's Con_ClearNotify routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_ClearNotify`. |
View source
# Con_CommandTrace
function Con_CommandTrace(state)
Mirror Quake's Con_CommandTrace routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_CommandTrace`. |
View source
# Con_ConsoleRows
function Con_ConsoleRows(state, pixelLines)
Mirror Quake's Con_ConsoleRows routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_ConsoleRows`. |
pixelLines | dynamic | — | The pixel lines input consumed by `Con_ConsoleRows`. |
View source
# Con_DebugLog
function Con_DebugLog(state, filename, text)
Mirror Quake's Con_DebugLog routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_DebugLog`. |
filename | dynamic | — | Path of the file to process. |
text | dynamic | — | Text to parse or process. |
View source
# Con_DPrintf
function Con_DPrintf(state, message, developer, dedicated, loadingDisabled)
Mirror Quake's Con_DPrintf routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_DPrintf`. |
message | dynamic | — | Diagnostic message that explains a failure or event. |
developer | dynamic | — | The developer input consumed by `Con_DPrintf`. |
dedicated | dynamic | — | The dedicated input consumed by `Con_DPrintf`. |
loadingDisabled | dynamic | — | The loading disabled input consumed by `Con_DPrintf`. |
View source
# Con_DrawConsole
function Con_DrawConsole(state, pixelLines, drawInput, realtime)
Mirror Quake's Con_DrawConsole routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_DrawConsole`. |
pixelLines | dynamic | — | The pixel lines input consumed by `Con_DrawConsole`. |
drawInput | dynamic | — | The draw input input consumed by `Con_DrawConsole`. |
realtime | dynamic | — | Time value used by the operation. |
View source
# Con_DrawInput
function Con_DrawInput(state, realtime)
Mirror Quake's Con_DrawInput routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_DrawInput`. |
realtime | dynamic | — | Time value used by the operation. |
View source
# Con_DrawNotify
function Con_DrawNotify(state, realtime, notifyTime, messageMode, chatText)
Mirror Quake's Con_DrawNotify routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_DrawNotify`. |
realtime | dynamic | — | Time value used by the operation. |
notifyTime | dynamic | — | Time value used by the operation. |
messageMode | dynamic | — | The message mode input consumed by `Con_DrawNotify`. |
chatText | dynamic | — | The chat text input consumed by `Con_DrawNotify`. |
View source
# Con_Init
function Con_Init(state, filesystem, pixelWidth, debugLog)
Mirror Quake's Con_Init routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Init`. |
filesystem | dynamic | — | The filesystem input consumed by `Con_Init`. |
pixelWidth | dynamic | — | The pixel width input consumed by `Con_Init`. |
debugLog | dynamic | — | The debug log input consumed by `Con_Init`. |
View source
# Con_Linefeed
function Con_Linefeed(state)
Mirror Quake's Con_Linefeed routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Linefeed`. |
View source
# Con_LogCenterPrint
function Con_LogCenterPrint(state, text, realtime)
Mirror Quake's Con_LogCenterPrint routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_LogCenterPrint`. |
text | dynamic | — | Text to parse or process. |
realtime | dynamic | — | Time value used by the operation. |
View source
# Con_MessageMode2_f
function Con_MessageMode2_f(state)
Mirror Quake's Con_MessageMode2_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_MessageMode2_f`. |
View source
# Con_MessageMode_f
function Con_MessageMode_f(state)
Mirror Quake's Con_MessageMode_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_MessageMode_f`. |
View source
# Con_Notify
function Con_Notify(state, text)
Mirror Quake's Con_Notify routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Notify`. |
text | dynamic | — | Text to parse or process. |
View source
# Con_NotifyBox
function Con_NotifyBox(state, text)
Mirror Quake's Con_NotifyBox routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_NotifyBox`. |
text | dynamic | — | Text to parse or process. |
View source
# Con_NotifyBoxKey
function Con_NotifyBoxKey(state, down)
Mirror Quake's Con_NotifyBoxKey routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_NotifyBoxKey`. |
down | dynamic | — | The down input consumed by `Con_NotifyBoxKey`. |
View source
# Con_NotifyBoxPending
inline function Con_NotifyBoxPending()
Mirror Quake's Con_NotifyBoxPending routine and its observable state changes.
View source
# Con_NotifyRows
function Con_NotifyRows(state, realtime, notifyTime)
Mirror Quake's Con_NotifyRows routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_NotifyRows`. |
realtime | dynamic | — | Time value used by the operation. |
notifyTime | dynamic | — | Time value used by the operation. |
View source
# Con_Print
function Con_Print(state, text, realtime)
Mirror Quake's Con_Print routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Print`. |
text | dynamic | — | Text to parse or process. |
realtime | dynamic | — | Time value used by the operation. |
View source
# Con_Print_f
function Con_Print_f(state, arguments)
Mirror Quake's Con_Print_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Print_f`. |
arguments | dynamic | — | Command-line arguments to inspect or execute. |
View source
# Con_Printf
function Con_Printf(state, message, dedicated, loadingDisabled)
Mirror Quake's Con_Printf routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_Printf`. |
message | dynamic | — | Diagnostic message that explains a failure or event. |
dedicated | dynamic | — | The dedicated input consumed by `Con_Printf`. |
loadingDisabled | dynamic | — | The loading disabled input consumed by `Con_Printf`. |
View source
# Con_SafePrintf
function Con_SafePrintf(state, message, dedicated)
Mirror Quake's Con_SafePrintf routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_SafePrintf`. |
message | dynamic | — | Diagnostic message that explains a failure or event. |
dedicated | dynamic | — | The dedicated input consumed by `Con_SafePrintf`. |
View source
# Con_SetRealtime
function Con_SetRealtime(state, realtime)
Mirror Quake's Con_SetRealtime routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_SetRealtime`. |
realtime | dynamic | — | Time value used by the operation. |
View source
# CON_TEXTSIZE
const CON_TEXTSIZE = 16384
Defines the con textsize value used by `miniquake.console`.
View source
# Con_ToggleConsole_f
function Con_ToggleConsole_f(state, connected)
Mirror Quake's Con_ToggleConsole_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `Con_ToggleConsole_f`. |
connected | dynamic | — | The connected input consumed by `Con_ToggleConsole_f`. |
View source
# create
function create(maxLines)
Implements the `create` operation for `miniquake.console` (create).
| Parameter | Type | Default | Description |
|---|
maxLines | dynamic | — | The max lines input consumed by `create`. |
View source
# DEFAULT_LINEWIDTH
const DEFAULT_LINEWIDTH = 38
Defines the default linewidth value used by `miniquake.console`.
View source
# filledBytes
function filledBytes(count, value)
Return filled bytes derived from the active module state.
| Parameter | Type | Default | Description |
|---|
count | dynamic | — | Number of entries or units to process. |
value | dynamic | — | Value consumed by `filledBytes`. |
View source
# lineBytes
function lineBytes(state, logicalLine)
Return line bytes derived from the active module state.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `lineBytes`. |
logicalLine | dynamic | — | The logical line input consumed by `lineBytes`. |
View source
# MAXCMDLINE
const MAXCMDLINE = 256
Defines the maxcmdline value used by `miniquake.console`.
View source
# notifyBoxSawDown
notifyBoxSawDown
Tracks the module-level notify box saw down state owned by `miniquake.console`.
View source
# notifyBoxWaiting
notifyBoxWaiting
Tracks the module-level notify box waiting state owned by `miniquake.console`.
View source
# NUM_CON_TIMES
const NUM_CON_TIMES = 4
Defines the num con times value used by `miniquake.console`.
View source
# printableLine
function printableLine(raw)
Implements the `printableLine` operation for `miniquake.console` (printable line).
| Parameter | Type | Default | Description |
|---|
raw | dynamic | — | The raw input consumed by `printableLine`. |
View source
# setActive
function setActive(state, active)
Update module state for active.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `setActive`. |
active | dynamic | — | The active input consumed by `setActive`. |
View source
# setBackscroll
function setBackscroll(value)
Update module state for backscroll.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `setBackscroll`. |
View source
# setInput
function setInput(state, text)
Update module state for input.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `setInput`. |
text | dynamic | — | Text to parse or process. |
View source
# syncLines
function syncLines(state)
Update module state for lines.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `syncLines`. |
View source
# takeInput
function takeInput(state)
Consume pending state for take input.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `takeInput`. |
View source
# toggle
function toggle(state)
Update subsystem configuration for toggle.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `toggle`. |
View source
# trimOldest
function trimOldest(lines, maximum)
Implements the `trimOldest` operation for `miniquake.console` (trim oldest).
| Parameter | Type | Default | Description |
|---|
lines | dynamic | — | The lines input consumed by `trimOldest`. |
maximum | dynamic | — | Largest accepted value. |
View source
# visibleLines
function visibleLines(state, count)
Report whether visible lines holds for the active state.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.console` state used by `visibleLines`. |
count | dynamic | — | Number of entries or units to process. |
View source
# zeroTimes
function zeroTimes()
Create the zero-initialized state for times.
View source