Skip to content

Commit 5ea0670

Browse files
committed
runcpm: fix more bold text
1 parent 5d13e6f commit 5ea0670

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

runcpm-rp2040-dvi-usb/runcpm-pico/globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
#define STR_HELPER(x) #x
9292
#define STR(x) STR_HELPER(x)
9393
// #define CCPHEAD "\r\nRunCPM Version " VERSION " (CP/M " STR(TPASIZE) "K)\r\n"
94-
#define CCPHEAD "\r\nRunCPM [\e[1mv" VERSION "\e[0m] => CCP:[\e[1m" CCPname "\e[0m] TPA:[\e[1m" STR(TPASIZE) "K\e[0m]\r\n"
94+
#define CCPHEAD "\r\nRunCPM [" TEXT_BOLD "v" VERSION TEXT_NORMAL "] => CCP:[" TEXT_BOLD CCPname TEXT_NORMAL "] TPA:" TEXT_BOLD STR(TPASIZE) "K" TEXT_NORMAL "\r\n"
9595

9696
#define NOSLASH // Will translate '/' to '_' on filenames to prevent directory errors
9797

runcpm-rp2040-dvi-usb/runcpm-pico/runcpm-pico.ino

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// only AVR and ARM CPU
66
// #include <MemoryFree.h>
77

8-
#include "globals.h"
9-
108
// =========================================================================================
119
// Guido Lehwalder's Code-Revision-Number
1210
// =========================================================================================
@@ -18,8 +16,20 @@
1816
#include <Adafruit_SPIFlash.h>
1917
#include <Adafruit_TinyUSB.h>
2018

19+
#ifndef USE_VT100
20+
#define USE_VT100 (0)
21+
#endif
22+
23+
#if USE_VT100
2124
#define TEXT_BOLD "\033[1m"
2225
#define TEXT_NORMAL "\033[0m"
26+
#else
27+
#define TEXT_BOLD ""
28+
#define TEXT_NORMAL ""
29+
#endif
30+
31+
#include "globals.h"
32+
2333

2434
// =========================================================================================
2535
// Board definitions go into the "hardware" folder, if you use a board different than the
@@ -133,7 +143,7 @@ void setup(void) {
133143
// { _puts("Recognized " TEXT_BOLD "#" TEXT_NORMAL " key as pressed! :)\r\n\r\n");
134144
// }
135145

136-
_puts("CP/M Emulator " TEXT_BOLD "v" VERSION "" TEXT_NORMAL " by " TEXT_BOLD "Marcelo Dantas\e[0m\r\n");
146+
_puts("CP/M Emulator " TEXT_BOLD "v" VERSION "" TEXT_NORMAL " by " TEXT_BOLD "Marcelo Dantas" TEXT_NORMAL "\r\n");
137147
_puts("----------------------------------------------\r\n");
138148
_puts(" running on [" TEXT_BOLD BOARD_TEXT TEXT_NORMAL "]\r\n");
139149
_puts("----------------------------------------------\r\n");

0 commit comments

Comments
 (0)