Files
Konrad d2e06b316d splinter: curses TUI on NetBSD curses, CDE palettes as themes
The harness now has the interface it was missing: a chat pane on three
quarters of the screen, a sidebar on one quarter, a status bar underneath.

- vendor/netbsd-curses: NetBSD's curses and terminfo, ported edition,
  vendored with PROVENANCE.md. The build of that one directory needs GNU
  make; splinter's own Makefile stays POSIX make.
- tools/genpalettes.py turns CDE's *.dp palette files into a C table. 42
  palettes, generated, checked in with the generator, so the source of every
  colour is a file in the CDE tree and not a guess.
- themes: roles are derived, not invented - background is the darkest of the
  eight colour sets, foreground the lightest, border the second darkest,
  accent the most saturated of the rest, status the accent darkened by a
  third. Delphinium is the default. Unknown palette is an error.
- colours map to the terminal through xterm's 256-colour cube when available,
  the 16 basic colours otherwise, so a palette looks the same everywhere
  within what the terminal can show.
- ui.c redraws only on change; the sidebar shows session, transport, theme
  and last-turn numbers. Widgets are a labelled empty area - the registry
  lands next.

Six test binaries green, including test_theme (42 palettes, ordering
invariants, unknown name rejected, colour indices in range).
2026-11-07 11:27:09 +00:00

58 lines
985 B
Makefile

# $NetBSD: Makefile,v 1.8 2016/10/03 17:06:58 christos Exp $
WARNS= 6
CPPFLAGS+= -I${.CURDIR}
LIB= panel
INCS= panel.h
INCSDIR= /usr/include
SRCS= #
SRCS+= _deck.c
SRCS+= above.c
SRCS+= below.c
SRCS+= bottom.c
SRCS+= del.c
SRCS+= getuser.c
SRCS+= hidden.c
SRCS+= hide.c
SRCS+= move.c
SRCS+= new.c
SRCS+= replace.c
SRCS+= setuser.c
SRCS+= show.c
SRCS+= top.c
SRCS+= update.c
SRCS+= window.c
LIBDPLIBS+= curses ${.CURDIR}/../libcurses
MAN= #
MAN+= move_panel.3
MAN+= new_panel.3
MAN+= panel.3
MAN+= panel_above.3
MAN+= panel_hidden.3
MAN+= panel_userptr.3
MAN+= update_panels.3
MLINKS+= new_panel.3 panel_window.3
MLINKS+= new_panel.3 replace_window.3
MLINKS+= new_panel.3 replace_panel.3
MLINKS+= new_panel.3 del_panel.3
MLINKS+= panel_above.3 top_panel.3
MLINKS+= panel_above.3 bottom_panel.3
MLINKS+= panel_above.3 panel_below.3
MLINKS+= panel_hidden.3 hide_panel.3
MLINKS+= panel_hidden.3 show_panel.3
MLINKS+= panel_userptr.3 set_panel_userptr.3
.include <bsd.lib.mk>