![]() |
Forum Index : Microcontroller and PC projects : PicoMite Editor Color Codes Wrong?
Author | Message | ||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 424 |
In version 06.00.02, Editor.c has the following color codes defined in lines 60-67: #define VT100_C_NORMAL "\033[37m" // White Foreground Colour #define VT100_C_COMMENT "\033[33m" // Yellow Yellow #define VT100_C_KEYWORD "\033[36m" // Cyan Cyan #define VT100_C_QUOTE "\033[35m" // Green Green #define VT100_C_NUMBER "\033[32m" // Red Red #define VT100_C_LINE "\033[35m" // White Grey #define VT100_C_STATUS "\033[37m" // Black Brown #define VT100_C_ERROR "\033[31m" // Red Red but the VT-100 reference I have shows Foreground Colours 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White So it looks like some codes are defined wrong. The correct definition should be: #define VT100_C_NORMAL "\033[37m" // White Foreground Colour #define VT100_C_COMMENT "\033[33m" // Yellow Yellow #define VT100_C_KEYWORD "\033[36m" // Cyan Cyan #define VT100_C_QUOTE "\033[32m" // Green Green #define VT100_C_NUMBER "\033[31m" // Red Red #define VT100_C_LINE "\033[37m" // White Grey #define VT100_C_STATUS "\033[30m" // Black Brown #define VT100_C_ERROR "\033[31m" // Red Red Edited 2025-06-24 15:02 by toml_12953 |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
The colours on the LCD match the colours on a VT terminal. The 'error' is with the comments, not the definitions. Jim VK7JH MMedit |
||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 424 |
OK. Good to know. Thanks. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |