| ... | ... |
@@ -55,6 +55,8 @@ cd uxn |
| 55 | 55 |
./build.sh |
| 56 | 56 |
``` |
| 57 | 57 |
|
| 58 |
+If you'd like to work with the Console device in `uxnemu.exe`, run `./build.sh --console` instead: this will bring up an extra window for console I/O unless you run `uxnemu.exe` in Command Prompt or PowerShell. |
|
| 59 |
+ |
|
| 58 | 60 |
## Getting Started |
| 59 | 61 |
|
| 60 | 62 |
### Emulator |
| ... | ... |
@@ -30,7 +30,12 @@ CC="${CC:-cc}"
|
| 30 | 30 |
CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
|
| 31 | 31 |
case "$(uname -s 2>/dev/null)" in |
| 32 | 32 |
MSYS_NT*|MINGW*) # MSYS2 on Windows |
| 33 |
- UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" |
|
| 33 |
+ if [ "${1}" = '--console' ];
|
|
| 34 |
+ then |
|
| 35 |
+ UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs | sed -e 's/ -mwindows//g')" |
|
| 36 |
+ else |
|
| 37 |
+ UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" |
|
| 38 |
+ fi |
|
| 34 | 39 |
;; |
| 35 | 40 |
Darwin) # macOS |
| 36 | 41 |
CFLAGS="${CFLAGS} -Wno-typedef-redefinition"
|