modus
Menu
On this page

The entry grid_terminal

Full-screen direct framebuffer monospace grid terminal for modus:terminal .

Reads typed terminal records from console on the shared terminal ring through the renderer intake of modus:terminal, and blits a Spleen 8x16 monospace grid with Modus 24-bit colors, Lex syntax highlighting, cursor, and interactive completion popup directly onto the framebuffer. It reads the keys of the input service from the input ring, in place of the compositor, and sends each press to its process: it is the one process that writes the screen. Zero compositor, zero window chrome, zero TrueType.

See: Desktop-free console renderers: Variant B: grid_terminal in the repository

grid_terminal module with an entry

Hash
718df9a7c5bea13f5d079ef77f264171944e85c5c2937d6af9c00dc3485045ae
Size
81920 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

Full-screen direct framebuffer monospace grid terminal for modus:terminal

FactValue
KindModules with an entry
Sourcesrc/modules/system/grid_terminal
Boot imageyes: in the boot image, 81920 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()

entry

entry()
Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/system/grid_terminal/main.odin:57

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsThe terminal of a console image with no compositor on a machine with a screen: the framebuffer, where it draws a grid of characters, and the input ring, whose keys it sends to its process (renderer_terminal_start).
Other terms of its start grant setnone
Budget that it asks for
  • working memory pages 64
  • pages of its threads 72
  • pages of the pictures of its window 0
  • pages of the module and its imports from the files of the build
  • processes the least
  • threads 1
Working memory for the terminal ring mapping, text region, cell grid and the intake with its completion list, and one thread.

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module (its line); the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).