# asciiUpper
function asciiUpper(code)Implements the `asciiUpper` operation for `miniquake.conproc` (ascii upper).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `asciiUpper`. |
src/miniquake/conproc.mlminiquake/native.ml as native → src/miniquake/native.mlfunction asciiUpper(code)Implements the `asciiUpper` operation for `miniquake.conproc` (ascii upper).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | The code input consumed by `asciiUpper`. |
const CCOM_GET_SCR_LINES = 4Defines the ccom get scr lines value used by `miniquake.conproc`.
const CCOM_GET_TEXT = 3Defines the ccom get text value used by `miniquake.conproc`.
const CCOM_SET_SCR_LINES = 5Defines the ccom set scr lines value used by `miniquake.conproc`.
const CCOM_WRITE_TEXT = 2Defines the ccom write text value used by `miniquake.conproc`.
function CharToCode(character)Implements the `CharToCode` operation for `miniquake.conproc` (char to code).
| Parameter | Type | Default | Description |
|---|---|---|---|
character | dynamic | — | The character input consumed by `CharToCode`. |
function ConProc_Poll()Mirror Quake's ConProc_Poll routine and its observable state changes.
function ConProc_RequestBuffer()Mirror Quake's ConProc_RequestBuffer routine and its observable state changes.
function ConProc_SetTestBuffer(buffer)Mirror Quake's ConProc_SetTestBuffer routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `ConProc_SetTestBuffer`. |
function ConProc_State()Mirror Quake's ConProc_State routine and its observable state changes.
function ConProc_UseState(state)Mirror Quake's ConProc_UseState routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.conproc` state used by `ConProc_UseState`. |
conProcStateTracks the module-level console-process state owned by `miniquake.conproc`.
miniquake.conproc.ConProcState struct
function createState()Creates state for `miniquake.conproc`.
function DeinitConProc()Release or remove state for con proc.
function GetMappedBuffer(fileHandle)Return mapped buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
fileHandle | dynamic | — | The file handle input consumed by `GetMappedBuffer`. |
function GetScreenBufferLines()Return screen buffer lines.
const INFINITE = 4294967295Defines the infinite value used by `miniquake.conproc`.
function InitConProc(fileHandle, parentEvent, childEvent, useNative)Initialize state for init con proc.
| Parameter | Type | Default | Description |
|---|---|---|---|
fileHandle | dynamic | — | The file handle input consumed by `InitConProc`. |
parentEvent | dynamic | — | The parent event input consumed by `InitConProc`. |
childEvent | dynamic | — | The child event input consumed by `InitConProc`. |
useNative | dynamic | — | The use native input consumed by `InitConProc`. |
function paddedLine(text, width)Implements the `paddedLine` operation for `miniquake.conproc` (padded line).
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
width | dynamic | — | Requested width in pixels or data units. |
function processNativeRequest(state, mapped)Execute native request.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.conproc` state used by `processNativeRequest`. |
mapped | dynamic | — | The mapped input consumed by `processNativeRequest`. |
function processTestRequest(state)Execute test request.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.conproc` state used by `processTestRequest`. |
function ReadText(beginLine, endLine)Reads text for `miniquake.conproc`.
| Parameter | Type | Default | Description |
|---|---|---|---|
beginLine | dynamic | — | The begin line input consumed by `ReadText`. |
endLine | dynamic | — | The end line input consumed by `ReadText`. |
function ReleaseMappedBuffer(mapped)Release or remove state for mapped buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | dynamic | — | The mapped input consumed by `ReleaseMappedBuffer`. |
function RequestProc(block)Implements the `RequestProc` operation for `miniquake.conproc` (request proc).
| Parameter | Type | Default | Description |
|---|---|---|---|
block | dynamic | — | The block input consumed by `RequestProc`. |
function SetConsoleCXCY(stdoutHandle, width, height)Update module state for console cxcy.
| Parameter | Type | Default | Description |
|---|---|---|---|
stdoutHandle | dynamic | — | The stdout handle input consumed by `SetConsoleCXCY`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
function SetScreenBufferLines(lines)Update module state for screen buffer lines.
| Parameter | Type | Default | Description |
|---|---|---|---|
lines | dynamic | — | The lines input consumed by `SetScreenBufferLines`. |
function WriteText(text)Writes text for `miniquake.conproc`.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |