From d2c9682b13bf9202ab1e433da4333321809f474e Mon Sep 17 00:00:00 2001 From: Stefan Koelle <50440224+skoelle@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:33:32 +0100 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e01e70..55e0a62 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ GrafikMode($13); ## Methods -- InitTextGraf Init TextGraf Lib -- GrafikMode(int); Sets Graphics Mode -- setvgacolors(p); Sets VGA Colors +| Method | Description | +|--------|-------------| +| `InitTextGraf: integer` | Must be called at the very beginning of the program while still in text mode. Without this, the rest won't work. Returns 0 if everything is OK, -1 for unknown video type, and 1 for insufficient memory (requires about 12KB). | +| `SetPaletteSave(On: boolean)` | Call with `On = true` after `InitTextGraf` and in text mode. Saves the text palette and reserves memory for the graphics palette, which will then be used automatically. `On = false` disables this automation and frees the memory for the palettes (about 1.5KB). | +| `ToText` | Switches from graphics to text mode. Saves the screen content, etc. | +| `ToGraph` | Switches back to graphics mode. A graphics mode should have been exited with `ToText` beforehand to initialize all values. | +| `GrafikMode(Mode: byte)` | Sets the video mode. | +| `GetMonTyp: MonitorTyp` | Returns the monitor type. | +| `SetVGAColors(var Colors: VGAColors)` | Sets the VGA colors. | +