|
@@ -643,7 +643,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
styled like the netmenu popover: a borderless `theme.bg` surface whose
|
|
styled like the netmenu popover: a borderless `theme.bg` surface whose
|
|
|
first row is the dim `Applications` caption, `theme.panel_alt` hover rows
|
|
first row is the dim `Applications` caption, `theme.panel_alt` hover rows
|
|
|
and a rounded Power tile. It lists every self-contained GUI app in the
|
|
and a rounded Power tile. It lists every self-contained GUI app in the
|
|
|
- pack -- Terminal, Files, Web, Gallery, Chat, Clock, Text editor, Colors,
|
|
|
|
|
|
|
+ pack -- Terminal, Files, Web, Gallery, Chat, Clock, Textedit, Colors,
|
|
|
Mines, Cards, Disks, Tasks, Services, Settings and Date & Time -- with its
|
|
Mines, Cards, Disks, Tasks, Services, Settings and Date & Time -- with its
|
|
|
full-colour GNOME app icon and a hover highlight (the coloured letter tile
|
|
full-colour GNOME app icon and a hover highlight (the coloured letter tile
|
|
|
is only the fallback when the icon bundle is absent), shrinks its row
|
|
is only the fallback when the icon bundle is absent), shrinks its row
|
|
@@ -655,7 +655,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
(`wm_abi.h`).
|
|
(`wm_abi.h`).
|
|
|
A macOS-like dock is always visible at the bottom centre, drawn by the WM
|
|
A macOS-like dock is always visible at the bottom centre, drawn by the WM
|
|
|
as an overlay (not a work-area reservation). Its 13 pinned slots are
|
|
as an overlay (not a work-area reservation). Its 13 pinned slots are
|
|
|
- Terminal, Files, Web, Chat, Text editor, Gallery, Clock, Colors, Mines,
|
|
|
|
|
|
|
+ Terminal, Files, Web, Chat, Textedit, Gallery, Clock, Colors, Mines,
|
|
|
Cards, Disks, Tasks and Settings, with a thin separator before Settings;
|
|
Cards, Disks, Tasks and Settings, with a thin separator before Settings;
|
|
|
Services and Date & Time stay in the start menu. Icons use a 48 px base
|
|
Services and Date & Time stay in the start menu. Icons use a 48 px base
|
|
|
(24 px on very narrow screens) on a translucent rounded panel. The
|
|
(24 px on very narrow screens) on a translucent rounded panel. The
|
|
@@ -786,7 +786,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
the pre-frame refresh and the frame begin used to unmap the canvas under
|
|
the pre-frame refresh and the frame begin used to unmap the canvas under
|
|
|
the draw and kill the WM with a #PF. Closing a window kills its owner;
|
|
the draw and kill the WM with a #PF. Closing a window kills its owner;
|
|
|
the reaper frees the canvas. `clock`, `colors`, `settime`,
|
|
the reaper frees the canvas. `clock`, `colors`, `settime`,
|
|
|
- `term`, `files` and the other apps are canvas clients. The old
|
|
|
|
|
|
|
+ `term`, `files`, `textedit` and the other apps are canvas clients. The old
|
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
|
text-canvas renderer are removed. Pointer input: `SYS_WIN_POINTER` reports
|
|
text-canvas renderer are removed. Pointer input: `SYS_WIN_POINTER` reports
|
|
|
the content-relative position, buttons and focus, and `SYS_WIN_EVENT` queues
|
|
the content-relative position, buttons and focus, and `SYS_WIN_EVENT` queues
|
|
@@ -823,7 +823,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`*` mask (the real text is swapped back only for the edit loop, so caret,
|
|
`*` mask (the real text is swapped back only for the edit loop, so caret,
|
|
|
selection and clicks follow the mask); Tab returns `NGUI_INPUT_NEXT` with
|
|
selection and clicks follow the mask); Tab returns `NGUI_INPUT_NEXT` with
|
|
|
`NGUI_INPUT_CANCEL` so forms move the focus themselves. `NGUI_INPUT_MAX`
|
|
`NGUI_INPUT_CANCEL` so forms move the focus themselves. `NGUI_INPUT_MAX`
|
|
|
- is 512 (511 characters).
|
|
|
|
|
|
|
+ is 512 (511 characters). `ngui_text_area` is the multi-line editor built
|
|
|
|
|
+ on the same event model: soft wrap at word boundaries, caret/selection,
|
|
|
|
|
+ Ctrl+A, word and page movement, and the scrolling pane above; `textedit`
|
|
|
|
|
+ is its user and the gallery shows it.
|
|
|
- **Graphics**: `vga.c/h`, `vga_copy.S`, `blit.c/h`, `gpu.c`, `ati.c`, `nvidia.c`,
|
|
- **Graphics**: `vga.c/h`, `vga_copy.S`, `blit.c/h`, `gpu.c`, `ati.c`, `nvidia.c`,
|
|
|
`nv50.c`, `pci.h` — VESA LFB + shadow buffer. Drawing goes into a
|
|
`nv50.c`, `pci.h` — VESA LFB + shadow buffer. Drawing goes into a
|
|
|
`struct surface` render target: `vga_target()` is the screen's shadow buffer
|
|
`struct surface` render target: `vga_target()` is the screen's shadow buffer
|
|
@@ -944,9 +947,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
(`uwm_lib`) load faces and leave the 8×16 bitmap fallback when they are
|
|
(`uwm_lib`) load faces and leave the 8×16 bitmap fallback when they are
|
|
|
absent. The **browser calls `ngui_font_detach` before `heap_reset()` and
|
|
absent. The **browser calls `ngui_font_detach` before `heap_reset()` and
|
|
|
reattaches after `heap_start()`**, because its page heap is reset on every
|
|
reattaches after `heap_start()`**, because its page heap is reset on every
|
|
|
- navigation. Terminal and editor cells deliberately keep the 8×16 bitmap
|
|
|
|
|
- grid; ngui text fields use the proportional face with measured caret,
|
|
|
|
|
- selection and horizontal scrolling. Host test: `make test-font`
|
|
|
|
|
|
|
+ navigation. Terminal cells and the old terminal-canvas `edit` command
|
|
|
|
|
+ deliberately keep the 8×16 bitmap grid; ngui text fields use the
|
|
|
|
|
+ proportional face, and `ngui_text_area` uses the mono face with measured
|
|
|
|
|
+ caret, selection and soft wrap. Host test: `make test-font`
|
|
|
(`ufont_test.c`, including the WOFF round trip against
|
|
(`ufont_test.c`, including the WOFF round trip against
|
|
|
`testdata/fonts/sans.woff`, which `tools/mkwoff.py` builds from
|
|
`testdata/fonts/sans.woff`, which `tools/mkwoff.py` builds from
|
|
|
`fonts/sans.ttf` with stdlib zlib); `make fonts`
|
|
`fonts/sans.ttf` with stdlib zlib); `make fonts`
|
|
@@ -1845,19 +1849,36 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`cd` (the shell passes arguments verbatim). The one argument is passed as a
|
|
`cd` (the shell passes arguments verbatim). The one argument is passed as a
|
|
|
C string on the top of the user stack (`process_create_user(..., arg)`), so
|
|
C string on the top of the user stack (`process_create_user(..., arg)`), so
|
|
|
`_start(const char *arg)` needs no crt0. `ngui.c/h` is the shared userland
|
|
`_start(const char *arg)` needs no crt0. `ngui.c/h` is the shared userland
|
|
|
- GUI toolkit linked into `ucmd_files.c`, `ucmd_mines.c`, `ucmd_solitaire.c`,
|
|
|
|
|
- `ucmd_process.c` and the external `gallery.elf` (buttons, menu items, text
|
|
|
|
|
- fields with a disabled state, icons, layout cuts and scroll panes);
|
|
|
|
|
|
|
+ GUI toolkit linked into `ucmd_files.c`, `ucmd_textedit.c`,
|
|
|
|
|
+ `ucmd_mines.c`, `ucmd_solitaire.c`, `ucmd_process.c` and the external
|
|
|
|
|
+ `gallery.elf` (buttons, menu items, text fields with a disabled state, the
|
|
|
|
|
+ multi-line `ngui_text_area`, icons, layout cuts and scroll panes);
|
|
|
`files` opens the selected text file through
|
|
`files` opens the selected text file through
|
|
|
- `/ramfs/bin/edit`, image files through `/ramfs/bin/view`, and `.htm`/`.html`
|
|
|
|
|
|
|
+ `/ramfs/bin/textedit`, image files through `/ramfs/bin/view`, and `.htm`/`.html`
|
|
|
files through `/ramfs/bin/browser`. `ngui_end_ex()`
|
|
files through `/ramfs/bin/browser`. `ngui_end_ex()`
|
|
|
is the variant that runs the bookkeeping without publishing the canvas, for
|
|
is the variant that runs the bookkeeping without publishing the canvas, for
|
|
|
apps that poll input without redrawing.
|
|
apps that poll input without redrawing.
|
|
|
|
|
+- **Textedit**: `ucmd_textedit.c` is the Notepad-like plain-text editor (start
|
|
|
|
|
+ menu/dock *Textedit*, or `textedit [path]`, and the target of the `files`
|
|
|
|
|
+ text-file action). The editor area is `ngui_text_area`: soft wrap at word
|
|
|
|
|
+ boundaries, a caret with Home/End/PageUp/PageDown/arrow/word-jump movement,
|
|
|
|
|
+ mouse and double-click word selection, Ctrl+A, Backspace/Delete and
|
|
|
|
|
+ Ctrl+Backspace/Delete, Tab insertion and a vertical scrollbar. The toolbar
|
|
|
|
|
+ has New, Open, Save and Save As; Open/Save As use a small in-window path
|
|
|
|
|
+ dialog (`ngui_text_input`) and save with `SYS_WRITE_FILE`, so an installed
|
|
|
|
|
+ board can edit `/data` files and `/share` always works. CRLF/CR are
|
|
|
|
|
+ normalized to LF on load; files are capped at 256 KB. The status bar shows
|
|
|
|
|
+ the 1-based line/column, byte count and the file name with `(modified)`.
|
|
|
|
|
+ Ctrl+N/O/S work anywhere in the window, Ctrl+Q/W or Esc quit, and a modified
|
|
|
|
|
+ buffer asks before it is discarded by New/Open/quit. The title-bar X still
|
|
|
|
|
+ closes without a prompt (the canvas ABI has no close-request event). The
|
|
|
|
|
+ old `edit` command remains the 8x16 terminal-canvas editor for shell-only
|
|
|
|
|
+ use.
|
|
|
- **Gallery**: `gallery.c` is the ngui widget gallery: typography and
|
|
- **Gallery**: `gallery.c` is the ngui widget gallery: typography and
|
|
|
truncation, the drawing primitives and clip stack, the theme palette, every
|
|
truncation, the drawing primitives and clip stack, the theme palette, every
|
|
|
icon in `ICON_LIST`, live buttons/icon buttons, text fields (including a disabled,
|
|
icon in `ICON_LIST`, live buttons/icon buttons, text fields (including a disabled,
|
|
|
- read-only field) with event feedback, a nested draggable scroll pane and the
|
|
|
|
|
- `ngui_cut_*` layout helpers. The real
|
|
|
|
|
|
|
+ read-only field) with event feedback, the multi-line text area, a nested
|
|
|
|
|
+ draggable scroll pane and the `ngui_cut_*` layout helpers. The real
|
|
|
ELF ships in the pack as `bin/gallery.app`; `ucmd_gallery.c` is the tiny
|
|
ELF ships in the pack as `bin/gallery.app`; `ucmd_gallery.c` is the tiny
|
|
|
`bin/gallery` launcher, which prefers `/share/GALLERY` (development upload
|
|
`bin/gallery` launcher, which prefers `/share/GALLERY` (development upload
|
|
|
via `make gallery-dev`), then the pack copy, then the `GALLERY` disk
|
|
via `make gallery-dev`), then the pack copy, then the `GALLERY` disk
|
|
@@ -2669,7 +2690,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`mkdir <path>`, `rmdir <path>`, `hello`, `acpidump` (writes the mapped
|
|
`mkdir <path>`, `rmdir <path>`, `hello`, `acpidump` (writes the mapped
|
|
|
DSDT to `/share/DSDT.BIN`), `reboot`, `poweroff`,
|
|
DSDT to `/share/DSDT.BIN`), `reboot`, `poweroff`,
|
|
|
`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [probe] [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional] [invert on|off]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `bootscan` (the live boot storage-scan window), `seriallog save <path>|show` (write the always-on COM1 capture to a file, or print the whole capture on screen), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [probe] [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional] [invert on|off]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `bootscan` (the live boot storage-scan window), `seriallog save <path>|show` (write the always-on COM1 capture to a file, or print the whole capture on screen), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
|
-`ps`, `renice <pid> <weight>`, `kill <pid>`, `idle [auto|hlt|c1e|c3|c6]`, `power`, `powerinfo`, `cpufreq [auto|min|max|off|<pstate>]`, `spin [ms]`, `membench` (ring-3 speed check: TSC, ALU, heap/BSS memcpy, syscall rates), `backlight [0-100|up|down]` (also `probe`), `keytest` (raw scancode tap), `help`, `clear`, `serial test`, `kexec`, `dbg`, `service [list|status <name>|start|stop|restart|kill <name>|logs <name>|logtail <name>|--gui]` (init's client; `websrv` is the first service and holds the raw NIC receiver while running), `view <file>` (image viewer; PNG, baseline/progressive JPEG, animated GIF, BMP, TGA, PNM, ICO, PAM), `browser [url|file]` (disk app launcher; waits for the app so a terminal launch is foreground), and `chat [config-path]` (Cloudron Chat client).
|
|
|
|
|
|
|
+`ps`, `renice <pid> <weight>`, `kill <pid>`, `idle [auto|hlt|c1e|c3|c6]`, `power`, `powerinfo`, `cpufreq [auto|min|max|off|<pstate>]`, `spin [ms]`, `membench` (ring-3 speed check: TSC, ALU, heap/BSS memcpy, syscall rates), `backlight [0-100|up|down]` (also `probe`), `keytest` (raw scancode tap), `help`, `clear`, `serial test`, `kexec`, `dbg`, `service [list|status <name>|start|stop|restart|kill <name>|logs <name>|logtail <name>|--gui]` (init's client; `websrv` is the first service and holds the raw NIC receiver while running), `view <file>` (image viewer; PNG, baseline/progressive JPEG, animated GIF, BMP, TGA, PNM, ICO, PAM), `textedit [file]` (Notepad-like plain-text editor; start menu/dock *Textedit*), `browser [url|file]` (disk app launcher; waits for the app so a terminal launch is foreground), and `chat [config-path]` (Cloudron Chat client).
|
|
|
|
|
|
|
|
Network: `netinfo`, `netrecv`, `netsend`, `netip [a.b.c.d]`, `dhcp` (re-run the
|
|
Network: `netinfo`, `netrecv`, `netsend`, `netip [a.b.c.d]`, `dhcp` (re-run the
|
|
|
DHCP client), `netdev [name]` (kernel command: show the active NIC driver or
|
|
DHCP client), `netdev [name]` (kernel command: show the active NIC driver or
|
|
@@ -2701,7 +2722,7 @@ nested). `/` is the read-only VFS root listing the mounted filesystems (the
|
|
|
filesystem commands operate inside a mount, e.g. `cat /floppy1/HELLO.TXT`).
|
|
filesystem commands operate inside a mount, e.g. `cat /floppy1/HELLO.TXT`).
|
|
|
|
|
|
|
|
`cpuinfo`, `ls`, `cat`, `save`, `rm`, `mkdir`, `rmdir`, `meminfo`, `top`, `process`, `spin`,
|
|
`cpuinfo`, `ls`, `cat`, `save`, `rm`, `mkdir`, `rmdir`, `meminfo`, `top`, `process`, `spin`,
|
|
|
-`clock`, `colors`, `settime`, `date`, `files`, `disks`, `gallery`, `chat`, `view`, `sensors`, `powerinfo`, `mouseinfo`, `storage`, `netinfo`, `netip`, `netdns`, `host`, `dhcp`, `ping`,
|
|
|
|
|
|
|
+`clock`, `colors`, `settime`, `date`, `files`, `textedit`, `disks`, `gallery`, `chat`, `view`, `sensors`, `powerinfo`, `mouseinfo`, `storage`, `netinfo`, `netip`, `netdns`, `host`, `dhcp`, `ping`,
|
|
|
`pong`, `netsend`, `netrecv`, `netlog`, `netconsole`, `netregs`, `netloop`,
|
|
`pong`, `netsend`, `netrecv`, `netlog`, `netconsole`, `netregs`, `netloop`,
|
|
|
`netreset`, `websrv`, `curl`, `wifi`, `netmenu`, `settings`, `solitaire` and `hello` are files in `/ramfs/bin`
|
|
`netreset`, `websrv`, `curl`, `wifi`, `netmenu`, `settings`, `solitaire` and `hello` are files in `/ramfs/bin`
|
|
|
(packed by the Makefile), found through the shell's PATH; the rest are kernel
|
|
(packed by the Makefile), found through the shell's PATH; the rest are kernel
|
|
@@ -3348,8 +3369,8 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
bytes, ~945 KiB gzip; 6000 454,608 bytes, ~204 KiB gzip), the RTL8821A
|
|
bytes, ~945 KiB gzip; 6000 454,608 bytes, ~204 KiB gzip), the RTL8821A
|
|
|
firmware and tables (31,898 + 11,668
|
|
firmware and tables (31,898 + 11,668
|
|
|
bytes), the 15 full-colour app icons and `install/kernel.bin` is
|
|
bytes), the 15 full-colour app icons and `install/kernel.bin` is
|
|
|
- ~3.16 MB gzip (~0.8 MB under the cap), inflating to ~7.3 MB, which adds
|
|
|
|
|
- about a second to the boot; the floppy lite pack is ~744 KB gzip
|
|
|
|
|
|
|
+ ~3.19 MB gzip (~0.8 MB under the cap), inflating to ~7.3 MB, which adds
|
|
|
|
|
+ about a second to the boot; the floppy lite pack is ~770 KB gzip
|
|
|
and deliberately omits the firmware, the cursor bundle,
|
|
and deliberately omits the firmware, the cursor bundle,
|
|
|
`install/kernel.bin` and the browser (`BROWSER` on `root.img` is the
|
|
`install/kernel.bin` and the browser (`BROWSER` on `root.img` is the
|
|
|
floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
@@ -3671,8 +3692,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
its text uses the built-in faces, and a very text-heavy page can exhaust
|
|
its text uses the built-in faces, and a very text-heavy page can exhaust
|
|
|
it and fall back to re-rasterizing
|
|
it and fall back to re-rasterizing
|
|
|
evicted glyphs. The browser must detach/re-attach its font arena around
|
|
evicted glyphs. The browser must detach/re-attach its font arena around
|
|
|
- `heap_reset()`; terminal/editor cell grids stay on the 8×16 bitmap font,
|
|
|
|
|
- while ngui text fields use the proportional face.
|
|
|
|
|
|
|
+ `heap_reset()`; terminal cells and the old `edit` command stay on the
|
|
|
|
|
+ 8×16 bitmap font, while ngui text fields use the proportional face and
|
|
|
|
|
+ `ngui_text_area` uses the mono face.
|
|
|
|
|
|
|
|
27. Ring-3 stdio/time/math limits: `FILE` is read-only and whole-file
|
|
27. Ring-3 stdio/time/math limits: `FILE` is read-only and whole-file
|
|
|
(4 MB cap); there is no `open/read/write/lseek`/fd layer yet, and
|
|
(4 MB cap); there is no `open/read/write/lseek`/fd layer yet, and
|
|
@@ -3974,3 +3996,15 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
LPSS UART (`8086:9d27`, ACPI `UA00`) is a 16550 at its MMIO BAR (Linux
|
|
LPSS UART (`8086:9d27`, ACPI `UA00`) is a 16550 at its MMIO BAR (Linux
|
|
|
`ttyS4`), not the legacy COM1; the legacy port floats at `0xFF`, which
|
|
`ttyS4`), not the legacy COM1; the legacy port floats at `0xFF`, which
|
|
|
`serial_init()` now detects before the PIT starts polling it.
|
|
`serial_init()` now detects before the PIT starts polling it.
|
|
|
|
|
+
|
|
|
|
|
+44. Textedit/ngui text-area limits: no undo/redo, clipboard, find/replace,
|
|
|
|
|
+ line numbers, syntax highlighting or word-count; selection is mouse drag,
|
|
|
|
|
+ double-click or Ctrl+A because the kernel key path exposes no Shift+arrow
|
|
|
|
|
+ chord. Open/Save As are a single path field (no file browser; use
|
|
|
|
|
+ `files` or the `open` dialog's path field), files are capped at 256 KB,
|
|
|
|
|
+ text is Latin-1 and saves always write LF line endings. The title-bar X
|
|
|
|
|
+ kills the process without the discard prompt, and paths are limited to 63
|
|
|
|
|
+ characters (`VFS_PATH_MAX`); longer input gets a "Path is too long" error.
|
|
|
|
|
+ The widget scans the buffer to
|
|
|
|
|
+ wrap and find the caret each frame, so a 256 KB document is noticeably
|
|
|
|
|
+ more CPU-hungry than a small one.
|