MiniQuake

src/miniquake/conproc.ml

Package
miniquake.conproc
Reachable
Yes

Imports

Declarations

asciiUpper

function asciiUpper(code)

Implements the `asciiUpper` operation for `miniquake.conproc` (ascii upper).

ParameterTypeDefaultDescription
codedynamic—The code input consumed by `asciiUpper`.

View source

CCOM_GET_SCR_LINES

const CCOM_GET_SCR_LINES = 4

Defines the ccom get scr lines value used by `miniquake.conproc`.

View source

CCOM_GET_TEXT

const CCOM_GET_TEXT = 3

Defines the ccom get text value used by `miniquake.conproc`.

View source

CCOM_SET_SCR_LINES

const CCOM_SET_SCR_LINES = 5

Defines the ccom set scr lines value used by `miniquake.conproc`.

View source

CCOM_WRITE_TEXT

const CCOM_WRITE_TEXT = 2

Defines the ccom write text value used by `miniquake.conproc`.

View source

CharToCode

function CharToCode(character)

Implements the `CharToCode` operation for `miniquake.conproc` (char to code).

ParameterTypeDefaultDescription
characterdynamic—The character input consumed by `CharToCode`.

View source

ConProc_Poll

function ConProc_Poll()

Mirror Quake's ConProc_Poll routine and its observable state changes.

View source

ConProc_RequestBuffer

function ConProc_RequestBuffer()

Mirror Quake's ConProc_RequestBuffer routine and its observable state changes.

View source

ConProc_SetTestBuffer

function ConProc_SetTestBuffer(buffer)

Mirror Quake's ConProc_SetTestBuffer routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `ConProc_SetTestBuffer`.

View source

ConProc_State

function ConProc_State()

Mirror Quake's ConProc_State routine and its observable state changes.

View source

ConProc_UseState

function ConProc_UseState(state)

Mirror Quake's ConProc_UseState routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.conproc` state used by `ConProc_UseState`.

View source

conProcState

conProcState

Tracks the module-level console-process state owned by `miniquake.conproc`.

View source

miniquake.conproc.ConProcState struct

createState

function createState()

Creates state for `miniquake.conproc`.

View source

DeinitConProc

function DeinitConProc()

Release or remove state for con proc.

View source

GetMappedBuffer

function GetMappedBuffer(fileHandle)

Return mapped buffer.

ParameterTypeDefaultDescription
fileHandledynamic—The file handle input consumed by `GetMappedBuffer`.

View source

GetScreenBufferLines

function GetScreenBufferLines()

Return screen buffer lines.

View source

INFINITE

const INFINITE = 4294967295

Defines the infinite value used by `miniquake.conproc`.

View source

InitConProc

function InitConProc(fileHandle, parentEvent, childEvent, useNative)

Initialize state for init con proc.

ParameterTypeDefaultDescription
fileHandledynamic—The file handle input consumed by `InitConProc`.
parentEventdynamic—The parent event input consumed by `InitConProc`.
childEventdynamic—The child event input consumed by `InitConProc`.
useNativedynamic—The use native input consumed by `InitConProc`.

View source

paddedLine

function paddedLine(text, width)

Implements the `paddedLine` operation for `miniquake.conproc` (padded line).

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
widthdynamic—Requested width in pixels or data units.

View source

processNativeRequest

function processNativeRequest(state, mapped)

Execute native request.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.conproc` state used by `processNativeRequest`.
mappeddynamic—The mapped input consumed by `processNativeRequest`.

View source

processTestRequest

function processTestRequest(state)

Execute test request.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.conproc` state used by `processTestRequest`.

View source

ReadText

function ReadText(beginLine, endLine)

Reads text for `miniquake.conproc`.

ParameterTypeDefaultDescription
beginLinedynamic—The begin line input consumed by `ReadText`.
endLinedynamic—The end line input consumed by `ReadText`.

View source

ReleaseMappedBuffer

function ReleaseMappedBuffer(mapped)

Release or remove state for mapped buffer.

ParameterTypeDefaultDescription
mappeddynamic—The mapped input consumed by `ReleaseMappedBuffer`.

View source

RequestProc

function RequestProc(block)

Implements the `RequestProc` operation for `miniquake.conproc` (request proc).

ParameterTypeDefaultDescription
blockdynamic—The block input consumed by `RequestProc`.

View source

SetConsoleCXCY

function SetConsoleCXCY(stdoutHandle, width, height)

Update module state for console cxcy.

ParameterTypeDefaultDescription
stdoutHandledynamic—The stdout handle input consumed by `SetConsoleCXCY`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

SetScreenBufferLines

function SetScreenBufferLines(lines)

Update module state for screen buffer lines.

ParameterTypeDefaultDescription
linesdynamic—The lines input consumed by `SetScreenBufferLines`.

View source

WriteText

function WriteText(text)

Writes text for `miniquake.conproc`.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source