Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:46 02 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite Editor Color Codes Wrong?

Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 424
Posted: 05:00am 24 Jun 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 6266
Posted: 05:40am 24 Jun 2025
Copy link to clipboard 
Print this post

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 States
Posts: 424
Posted: 06:23am 24 Jun 2025
Copy link to clipboard 
Print this post

  TassyJim said  The colours on the LCD match the colours on a VT terminal.
The 'error' is with the comments, not the definitions.

Jim


OK. Good to know. Thanks.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025