Start the screen at 132x64

The terminal comes up (and resets with ESC c) in DECCOLM's 132x64 mode;
term_ctrl's WIDE_BOOT parameter selects 80x32 instead. Port 0 bit 2 tells
software which width is showing: BASIC's line editor wraps at it, and
the games, which play at 80 columns, put 132 back when they end.

scripts/sim.sh wide checks the start-up; the other checks still start
at 80x32. Manual, README and terminfo updated. send-hex.py is executable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-11-30 19:34:12 -08:00
1 parent 5930b958b4
commit 19278d1d74
23 files changed
+4183 -4102

No files matched your search

+8 -4
View File
@@ -1,7 +1,8 @@
`timescale 1ns / 1ps
// VT220 terminal engine with ANSI colour. Consumes received bytes and keeps
// the character buffer up to date: 80x32, or 132x64 after DECCOLM (CSI ?3h).
// the character buffer up to date: 132x64 (DECCOLM, CSI ?3h; the start-up
// mode unless WIDE_BOOT = 0) or 80x32 (CSI ?3l).
// The buffer is row-major with a 132-cell stride in both (address = row*132 +
// col), so scrolling copies whole 132-cell rows either way.
//
@@ -21,7 +22,9 @@
// Scrolling copies rows in memory. With smooth scroll on, a line feed at the
// bottom margin first slides the region up a few pixels per frame.
module term_ctrl (
module term_ctrl #(
parameter WIDE_BOOT = 1 // start (and ESC c) in 132x64; 0 for 80x32
) (
input clk,
input rst,
input [7:0] in_byte,
@@ -343,8 +346,9 @@ module term_ctrl (
begin
soft_reset;
{row, col} <= 0;
{sclm, lnm, wide, colm_clr} <= 4'b0;
sbot <= 6'd31;
{sclm, lnm, colm_clr} <= 3'b0;
wide <= WIDE_BOOT != 0;
sbot <= WIDE_BOOT != 0 ? 6'd63 : 6'd31;
dec_leds <= 4'd0;
sm_on <= 1'b0;
sm_off <= 5'd0;