terminal text colour
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 1:42 PM
Posted on January 08, 2018 at 22:42
what is the correct vt100 code for changing the terminal text colour?
send_usart(0x1B);
send_usart('[');
send_usart(3);
send_usart(4);
send_usart('m');
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 3:38 PM
Posted on January 09, 2018 at 00:38
send_usart(0x1B); send_usart('['); send_usart('3'); send_usart('4'); send_usart('m');
Or sent as a string
'\x1b[34m'
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 5:11 PM
Posted on January 09, 2018 at 02:11
this works:
char colorized[42] = ''\x1b[31;1m A \x1b[32;1m B \x1b[36;1m C \x1b[37;1m D\r\n'';
HAL_UART_Transmit(&huart2, (uint8_t *)&colorized, 42, 0x00FF);