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:
1 parent
5930b958b4
commit
19278d1d74
23 files changed
+4183
-4102
No files matched your search
@@ -637,6 +637,7 @@ int main(void)
|
||||
{
|
||||
rnd_state = 0x1980 ^ frame_ctr;
|
||||
last_frame = frame_ctr;
|
||||
u8 was_wide = con_stat & 4; /* 132 columns before the game? */
|
||||
puts_("\033[?3l\033[?25l");
|
||||
load_shapes();
|
||||
quit = 0;
|
||||
@@ -645,6 +646,7 @@ int main(void)
|
||||
play();
|
||||
}
|
||||
clear_all();
|
||||
puts_("\033[0m\033[2J\033[H\033[?25h");
|
||||
puts_(was_wide ? "\033[0m\033[?3h\033[?25h" /* back to 132 columns (this clears) */
|
||||
: "\033[0m\033[2J\033[H\033[?25h");
|
||||
while (con_stat & 1) (void)con_data;
|
||||
}
|
||||
+590
-587
File diff suppressed because it is too large.
Load diff
+3
-1
@@ -632,6 +632,7 @@ int main(void)
|
||||
{
|
||||
rnd_state = 0xACE1 ^ frame_ctr;
|
||||
last_frame = frame_ctr;
|
||||
u8 was_wide = con_stat & 4; /* 132 columns before the game? */
|
||||
puts_("\033[?3l\033[?25l"); /* 80 columns (this clears), no cursor */
|
||||
load_shapes();
|
||||
quit = 0;
|
||||
@@ -642,6 +643,7 @@ int main(void)
|
||||
if (!end_screen()) break;
|
||||
}
|
||||
clear_gfx();
|
||||
puts_("\033[0m\033[2J\033[H\033[?25h");
|
||||
puts_(was_wide ? "\033[0m\033[?3h\033[?25h" /* back to 132 columns (this clears) */
|
||||
: "\033[0m\033[2J\033[H\033[?25h");
|
||||
while (con_stat & 1) (void)con_data;
|
||||
}
|
||||
+812
-809
File diff suppressed because it is too large.
Load diff
+3
-1
@@ -683,6 +683,7 @@ int main(void)
|
||||
{
|
||||
rnd_state = 0xBEEF ^ frame_ctr;
|
||||
last_frame = frame_ctr;
|
||||
u8 was_wide = con_stat & 4; /* 132 columns before the game? */
|
||||
puts_("\033[?3l\033[?25l");
|
||||
load_shapes();
|
||||
quit = 0;
|
||||
@@ -691,6 +692,7 @@ int main(void)
|
||||
play();
|
||||
}
|
||||
clear_all();
|
||||
puts_("\033[0m\033[2J\033[H\033[?25h");
|
||||
puts_(was_wide ? "\033[0m\033[?3h\033[?25h" /* back to 132 columns (this clears) */
|
||||
: "\033[0m\033[2J\033[H\033[?25h");
|
||||
while (con_stat & 1) (void)con_data;
|
||||
}
|
||||
+597
-594
File diff suppressed because it is too large.
Load diff
+3
-1
@@ -641,6 +641,7 @@ int main(void)
|
||||
u8 i;
|
||||
rnd_state = 0x1979 ^ frame_ctr;
|
||||
last_frame = frame_ctr;
|
||||
u8 was_wide = con_stat & 4; /* 132 columns before the game? */
|
||||
puts_("\033[?3l\033[?25l");
|
||||
load_shapes();
|
||||
for (i = 0; i < NST; i++) { st_x[i] = rnd() % 304; st_y[i] = rnd() % 240; st_v[i] = 1 + (i & 1); }
|
||||
@@ -650,6 +651,7 @@ int main(void)
|
||||
play();
|
||||
}
|
||||
clear_all();
|
||||
puts_("\033[0m\033[2J\033[H\033[?25h");
|
||||
puts_(was_wide ? "\033[0m\033[?3h\033[?25h" /* back to 132 columns (this clears) */
|
||||
: "\033[0m\033[2J\033[H\033[?25h");
|
||||
while (con_stat & 1) (void)con_data;
|
||||
}
|
||||
+550
-548
File diff suppressed because it is too large.
Load diff
@@ -803,6 +803,7 @@ int main(void)
|
||||
{
|
||||
rnd_state = 0x2084 ^ frame_ctr;
|
||||
last_frame = frame_ctr;
|
||||
u8 was_wide = con_stat & 4; /* 132 columns before the game? */
|
||||
puts_("\033[?3l\033[?25l");
|
||||
load_shapes();
|
||||
quit = 0;
|
||||
@@ -811,6 +812,7 @@ int main(void)
|
||||
play();
|
||||
}
|
||||
clear_all();
|
||||
puts_("\033[0m\033[2J\033[H\033[?25h");
|
||||
puts_(was_wide ? "\033[0m\033[?3h\033[?25h" /* back to 132 columns (this clears) */
|
||||
: "\033[0m\033[2J\033[H\033[?25h");
|
||||
while (con_stat & 1) (void)con_data;
|
||||
}
|
||||
+757
-755
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user