Merge pull request #5 from nobuh/msgbuf-format-not-a-string

Msgbuf format not a string
This commit is contained in:
Nobuhiro Hatano 2023-06-07 23:34:27 +09:00 committed by GitHub
commit c337c22071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 11 deletions

16
README
View File

@ -1,21 +1,17 @@
napple1 is an Apple 1 emulator using ncurses, ported from the SDL version napple1 is an Apple 1 emulator using ncurses, ported from the SDL version
Pom1 emulafor. If you have some questions, please report it as an issue. Pom1 emulafor. If you have some questions, please report it as an issue.
How to install on cygwin How to install on Ubuntu (ex. Ubuntu 22.04)
========================= ===========================================
0. Setup cygwin (base) and make, gcc4, libncurses-dev 1. sudo apt install make gcc libncurses-dev
and follow Linux procedure.
How to install on Linux 2. git clone https://github.com/nobuh/napple1.git
========================
1. Download latest source package nappple1-<n>.<n>.tar.gz
and extract it.
2. Build 3. Build
cd napple1/src cd napple1/src
make make
cd .. cd ..
3. Run 4. Run
./napple1 ./napple1
ROM Directory ROM Directory

View File

@ -45,7 +45,7 @@ void print_msgbuf(char *s)
"%-40s", "%-40s",
s); s);
werase(msgbuf); werase(msgbuf);
wprintw(msgbuf, msg); wprintw(msgbuf, "%s", msg);
wrefresh(msgbuf); wrefresh(msgbuf);
} }