The entry dom_terminal
The terminal of the console for a page that draws it with the document of a browser.
Reads the records of the terminal ring through the renderer intake of modus:terminal, and writes one JSON line for each step on the second serial port, COM2 (internal:dom_terminal/dom_protocol). The page keeps the scrollback, the edit line, the hint, the status bar and the completion list as elements of its document, with classes for each tone and each kind of code. The keys come back as VT100 sequences and UTF-8, through the UART driver and key decoder of modus:terminal, the ones of serial_terminal. COM1 stays the log of the kernel. Requires no compositor, no drawing module, no font and no framebuffer.
See: Desktop-free console renderers: Variant C: dom_terminal in the repository
dom_terminal module with an entry
- Hash
74cc85a4c7887de56289b563546042032d07e2f826b02e7f63fb4f5ff0a0dfcb- Size
53248 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The terminal of the console for a page that draws it with the document of a browser
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/dom_terminal |
| Boot image | yes: in the boot image, 53248 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() |
entry
entry()
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/system/dom_terminal/main.odin:36
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
| What | Value | As the root service says |
|---|---|---|
| Grants | The terminal of a console image for a page that draws it with the document of a browser: the ports of COM2, where it writes one JSON line for each step and reads keys (renderer_terminal_start). | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| Working memory for the terminal ring mapping, the text region, the line buffer and the intake with its completion list, and one service 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).
