MiniQuake

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).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `adjustBackscroll`.
deltadynamic—The delta input consumed by `adjustBackscroll`.
visibleRowsdynamic—The visible rows input consumed by `adjustBackscroll`.

View source

append

function append(state, text)

Implements the `append` operation for `miniquake.console` (append).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `append`.
textdynamic—Text to parse or process.

View source

appendCharacter

function appendCharacter(state, code)

Add state for append character.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `appendCharacter`.
codedynamic—The code input consumed by `appendCharacter`.

View source

appendLine

function appendLine(state, text)

Add state for append line.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `appendLine`.
textdynamic—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).

ParameterTypeDefaultDescription
statedynamic—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).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `centerPrint`.
textdynamic—Text to parse or process.
currentTimedynamic—Time value used by the operation.
durationdynamic—The duration input consumed by `centerPrint`.

View source

clear

function clear(state)

Implements the `clear` operation for `miniquake.console` (clear).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `clear`.

View source

clearExpiredCenter

function clearExpiredCenter(state, currentTime)

Update module state for expired center.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `clearExpiredCenter`.
currentTimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_CheckResize`.
pixelWidthdynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_ConsoleRows`.
pixelLinesdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_DebugLog`.
filenamedynamic—Path of the file to process.
textdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_DPrintf`.
messagedynamic—Diagnostic message that explains a failure or event.
developerdynamic—The developer input consumed by `Con_DPrintf`.
dedicateddynamic—The dedicated input consumed by `Con_DPrintf`.
loadingDisableddynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_DrawConsole`.
pixelLinesdynamic—The pixel lines input consumed by `Con_DrawConsole`.
drawInputdynamic—The draw input input consumed by `Con_DrawConsole`.
realtimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_DrawInput`.
realtimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_DrawNotify`.
realtimedynamic—Time value used by the operation.
notifyTimedynamic—Time value used by the operation.
messageModedynamic—The message mode input consumed by `Con_DrawNotify`.
chatTextdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_Init`.
filesystemdynamic—The filesystem input consumed by `Con_Init`.
pixelWidthdynamic—The pixel width input consumed by `Con_Init`.
debugLogdynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_LogCenterPrint`.
textdynamic—Text to parse or process.
realtimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_Notify`.
textdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_NotifyBox`.
textdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_NotifyBoxKey`.
downdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_NotifyRows`.
realtimedynamic—Time value used by the operation.
notifyTimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_Print`.
textdynamic—Text to parse or process.
realtimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_Print_f`.
argumentsdynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_Printf`.
messagedynamic—Diagnostic message that explains a failure or event.
dedicateddynamic—The dedicated input consumed by `Con_Printf`.
loadingDisableddynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_SafePrintf`.
messagedynamic—Diagnostic message that explains a failure or event.
dedicateddynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_SetRealtime`.
realtimedynamic—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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `Con_ToggleConsole_f`.
connecteddynamic—The connected input consumed by `Con_ToggleConsole_f`.

View source

create

function create(maxLines)

Implements the `create` operation for `miniquake.console` (create).

ParameterTypeDefaultDescription
maxLinesdynamic—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.

ParameterTypeDefaultDescription
countdynamic—Number of entries or units to process.
valuedynamic—Value consumed by `filledBytes`.

View source

lineBytes

function lineBytes(state, logicalLine)

Return line bytes derived from the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `lineBytes`.
logicalLinedynamic—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).

ParameterTypeDefaultDescription
rawdynamic—The raw input consumed by `printableLine`.

View source

setActive

function setActive(state, active)

Update module state for active.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `setActive`.
activedynamic—The active input consumed by `setActive`.

View source

setBackscroll

function setBackscroll(value)

Update module state for backscroll.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `setBackscroll`.

View source

setInput

function setInput(state, text)

Update module state for input.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `setInput`.
textdynamic—Text to parse or process.

View source

syncLines

function syncLines(state)

Update module state for lines.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `syncLines`.

View source

takeInput

function takeInput(state)

Consume pending state for take input.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `takeInput`.

View source

toggle

function toggle(state)

Update subsystem configuration for toggle.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `toggle`.

View source

trimOldest

function trimOldest(lines, maximum)

Implements the `trimOldest` operation for `miniquake.console` (trim oldest).

ParameterTypeDefaultDescription
linesdynamic—The lines input consumed by `trimOldest`.
maximumdynamic—Largest accepted value.

View source

visibleLines

function visibleLines(state, count)

Report whether visible lines holds for the active state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.console` state used by `visibleLines`.
countdynamic—Number of entries or units to process.

View source

zeroTimes

function zeroTimes()

Create the zero-initialized state for times.

View source