ncurses window is now 82x32 -> 80x25 for emulation

This commit is contained in:
folkert van heusden 2022-03-31 18:29:48 +02:00
parent 9164411f28
commit 1b2ad838b6
3 changed files with 9 additions and 5 deletions

View file

@ -362,6 +362,9 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons
int run_mode = c->getPSW() >> 14; int run_mode = c->getPSW() >> 14;
if (a >= 0160000) { if (a >= 0160000) {
if (word_mode)
fprintf(stderr, "WRITE I/O %06o in byte mode\n", a);
if (word_mode) { if (word_mode) {
if (a == 0177776 || a == 0177777) { // PSW if (a == 0177776 || a == 0177777) { // PSW
D(fprintf(stderr, "writeb PSW %s\n", a & 1 ? "MSB" : "LSB");) D(fprintf(stderr, "writeb PSW %s\n", a & 1 ? "MSB" : "LSB");)

View file

@ -5,6 +5,7 @@
#include <string.h> #include <string.h>
#include "console.h" #include "console.h"
#include "gen.h"
#include "utils.h" #include "utils.h"
@ -84,13 +85,13 @@ void console::put_char(const char c)
void console::put_string_ll(const std::string & what) void console::put_string_ll(const std::string & what)
{ {
for(int x=0; x<what.size(); x++) for(size_t x=0; x<what.size(); x++)
put_char_ll(what.at(x)); put_char_ll(what.at(x));
} }
void console::operator()() void console::operator()()
{ {
debug("Console thread started"); D(fprintf(stderr, "Console thread started\n");)
while(!*terminate) { while(!*terminate) {
int c = wait_for_char(500); int c = wait_for_char(500);
@ -118,5 +119,5 @@ void console::operator()()
} }
} }
debug("Console thread terminating"); D(fprintf(stderr, "Console thread terminating\n");)
} }

View file

@ -103,9 +103,9 @@ void console_ncurses::resize_terminal()
delete_window(w_main_b); delete_window(w_main_b);
delete_window(w_main); delete_window(w_main);
create_win_border(0, 0, max_x - 2, max_y - 6, "window", &w_main_b, &w_main, false); create_win_border(0, 0, 80, 25, "terminal", &w_main_b, &w_main, false);
create_win_border(0, max_y - 4, max_x - 2, 2, "panel", &w_panel_b, &w_panel, false); create_win_border(0, 26, 80, 3, "panel", &w_panel_b, &w_panel, false);
scrollok(w_main -> win, TRUE); scrollok(w_main -> win, TRUE);