The 6x12 console-font script carries its size in its name, like the 6x8 one
scripts/calculinux-console-font.sh is now calculinux-console-font-6x12.sh. Every reference follows: the setup script's hand-off, the 6x8 script's SHARED default and comments, the theme16 test that parses it, the module docstrings, the two manuals, the scripts index and CLAUDE.md. The font files it builds keep their names. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c5773191c
commit
49a609fabf
13 files changed
+27
-24
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ it is, and what has only ever been proven on one bench. The table below is the i
|
||||
| File | Runs on | What it does |
|
||||
| --- | --- | --- |
|
||||
| [`calculinux-setup.sh`](calculinux-setup.sh) | the Lyra (root) | One-time bring-up: python packages, the Wi-Fi boot-scan kick, a boot clock sync (there is no RTC), the deploy user, the checkout, the venv and `pip install -e .`, the login PATH, and the console font. Idempotent. |
|
||||
| [`calculinux-console-font.sh`](calculinux-console-font.sh) | the Lyra (root) | Just the console font: builds, installs and persists the 512-glyph **meshterm** PSF (braille, node marks, rounded frame corners, the list cursor) and restores the stock 16-slot palette. Calls the 6×8 build below when it sits alongside. Run it alone after a MeshTerm update. |
|
||||
| [`calculinux-console-font-6x12.sh`](calculinux-console-font-6x12.sh) | the Lyra (root) | Just the console font: builds, installs and persists the 512-glyph **meshterm** PSF (braille, node marks, rounded frame corners, the list cursor) and restores the stock 16-slot palette. Calls the 6×8 build below when it sits alongside. Run it alone after a MeshTerm update. |
|
||||
| [`calculinux-console-font-6x8.sh`](calculinux-console-font-6x8.sh) | the Lyra (root) | The shorter-cell companion font, **meshterm8** (6×8 → 53×40), for anyone who wants more rows than the 6×12 default gives. Its base bitmap is the kernel's `font_6x8`, so this one file and the PSF it builds are **GPL-2.0-only** ([`LICENSE.GPL-2.0`](LICENSE.GPL-2.0)); it reads the donor/alias/keeper tables out of the script above rather than keeping a second copy. Pick between the two fonts from MeshTerm's Preferences page. |
|
||||
| [`calculinux-wifi-set.sh`](calculinux-wifi-set.sh) | the Lyra (sudo) | Interactive Wi-Fi join: prompts for an SSID and passphrase, writes iwd's credentials, connects now. This is how a network *becomes* known to the boot kick. |
|
||||
| [`calculinux-radio-bridge.sh`](calculinux-radio-bridge.sh) | the Lyra (root) | **Unfinished, unsupported.** An early UART-to-TCP pump, superseded by `xiao-radio/lyra-setup.sh`; its header describes routing it does not contain. See the manual before reading it. |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# calculinux-console-font.sh -- build, install, and persist the "meshterm" console fonts
|
||||
# calculinux-console-font-6x12.sh -- build, install, and persist the "meshterm" console fonts
|
||||
# and the 16-slot palette.
|
||||
#
|
||||
# MeshTerm runs on a Luckfox Lyra inside a ClockworkPi PicoCalc under Calculinux, drawing
|
||||
@@ -42,7 +42,7 @@
|
||||
# Everything else is pure geometry, generated on-device; only the stock Terminus font and
|
||||
# python3 are required. Run as root on the Lyra (serial console is fine):
|
||||
#
|
||||
# sh calculinux-console-font.sh
|
||||
# sh calculinux-console-font-6x12.sh
|
||||
#
|
||||
# Idempotent -- safe to re-run after a MeshTerm update or a font tweak. Also manages the
|
||||
# 16-slot palette: a default run restores the stock VT palette (theme._VT_SLOTS) and
|
||||
@@ -294,7 +294,7 @@ fi
|
||||
# (theme._VT_SLOTS). The custom tailwind-family remap originally shipped is ARCHIVED,
|
||||
# one environment variable away for anyone who wants it back:
|
||||
#
|
||||
# MESHTERM_CUSTOM_PALETTE=1 sh calculinux-console-font.sh
|
||||
# MESHTERM_CUSTOM_PALETTE=1 sh calculinux-console-font-6x12.sh
|
||||
#
|
||||
# The opt-in block's values match theme.vtrgb_lines() / theme._VT_SLOTS_CUSTOM exactly (a
|
||||
# test keeps them in sync). A DEFAULT run removes any previously-installed remap and
|
||||
@@ -15,7 +15,7 @@
|
||||
#
|
||||
# WHERE THE SHARED PARTS LIVE. The donor, alias and keeper tables, the braille generator
|
||||
# and the PSF2 writer are NOT duplicated here. They are read out of
|
||||
# calculinux-console-font.sh (Apache-2.0), between its "shared generator (BEGIN)" and
|
||||
# calculinux-console-font-6x12.sh (Apache-2.0), between its "shared generator (BEGIN)" and
|
||||
# "(END)" marker lines, and exec'd -- so the two fonts can never drift, and a repo test
|
||||
# that parses those tables has exactly one file to parse. That file must sit beside this
|
||||
# one; point SHARED at it if it does not. The shared generator is additionally offered
|
||||
@@ -28,7 +28,7 @@
|
||||
# named in Cyrillic draws as tofu in this font. The keeper list drops the Cyrillic canary
|
||||
# accordingly, and only pi is checked.
|
||||
#
|
||||
# Run as root on the Lyra, either on its own or through calculinux-console-font.sh, which
|
||||
# Run as root on the Lyra, either on its own or through calculinux-console-font-6x12.sh, which
|
||||
# calls it:
|
||||
#
|
||||
# sh calculinux-console-font-6x8.sh
|
||||
@@ -43,7 +43,7 @@ FONT_NAME=meshterm
|
||||
CONSOLEFONTS=/usr/share/consolefonts
|
||||
OUT8="$CONSOLEFONTS/${FONT_NAME}8.psf.gz"
|
||||
HERE=$(dirname "$0")
|
||||
SHARED=${SHARED:-"$HERE/calculinux-console-font.sh"} # Apache-2.0; holds the shared tables
|
||||
SHARED=${SHARED:-"$HERE/calculinux-console-font-6x12.sh"} # Apache-2.0; holds the shared tables
|
||||
|
||||
# --- preflight: fail early with a plain reason, never half-apply -----------------------
|
||||
[ "$(id -u)" = 0 ] || { echo "error: run as root (writes $CONSOLEFONTS)" >&2; exit 1; }
|
||||
@@ -57,7 +57,7 @@ import os
|
||||
import re
|
||||
|
||||
# --- the shared generator, borrowed rather than copied ---------------------------------
|
||||
# Everything between the two marker lines in calculinux-console-font.sh: the braille
|
||||
# Everything between the two marker lines in calculinux-console-font-6x12.sh: the braille
|
||||
# generator, art(), DONORS, ALIASES, KEEP_COMMON, BANDS8 and build(). One copy of those
|
||||
# tables, in the Apache-2.0 file, both fonts built from it.
|
||||
SHARED = os.environ["SHARED"]
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
# 7. venv + install A venv + `pip install -e .`. pip's C builds hit ENOSPC because /tmp
|
||||
# is a tiny RAM tmpfs, so TMPDIR is redirected to $HOME/tmp on /data.
|
||||
# 8. PATH Put the venv's `meshterm` on that user's login PATH via ~/.profile.
|
||||
# 9. console font Hand off to calculinux-console-font.sh (braille + node glyphs +
|
||||
# 9. console font Hand off to calculinux-console-font-6x12.sh (braille + node glyphs +
|
||||
# rounded frame corners + the list cursor the bare console can't draw).
|
||||
#
|
||||
# Two prerequisites this script cannot safely embed and will check for / guide you through:
|
||||
@@ -348,10 +348,10 @@ fi
|
||||
|
||||
# --- 8. console font -------------------------------------------------------------------
|
||||
log "9/9 console font"
|
||||
if [ -f "$SCRIPT_DIR/calculinux-console-font.sh" ]; then
|
||||
sh "$SCRIPT_DIR/calculinux-console-font.sh"
|
||||
if [ -f "$SCRIPT_DIR/calculinux-console-font-6x12.sh" ]; then
|
||||
sh "$SCRIPT_DIR/calculinux-console-font-6x12.sh"
|
||||
else
|
||||
info "calculinux-console-font.sh not alongside this script -- skipping (run it separately)"
|
||||
info "calculinux-console-font-6x12.sh not alongside this script -- skipping (run it separately)"
|
||||
fi
|
||||
|
||||
# --- done ------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user