File tree Expand file tree Collapse file tree
runcpm-rp2040-dvi-usb/runcpm-pico Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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// =========================================================================================
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 " );
You can’t perform that action at this time.
0 commit comments