1

I am wondering whatever it is possible to output string with colour in assembly program ran on cmd. What I have in mind is similar thing to 0x02 graphics mode under DOS, where you can write message as following:

message db 'H', 0x0f, 'e', 0x04, 'l', 0x01, 'l', 0x05, 'o', 0x07 ;etc

In this case each letter would be with different foreground on different background. Is the same possible in windows console?


I have no idea how to word this question better, feel free to improve it or ask further details in comments
vakus
  • 732
  • 1
  • 10
  • 24
  • VT100-like escape sequences work in W10, do you need to support anything older? – harold Sep 04 '17 at 11:04
  • Well I am trying to get it working on windows 7 and higher – vakus Sep 04 '17 at 11:04
  • `SetConsoleTextAttribute` and `WriteConsoleOutputAttribute` then – harold Sep 04 '17 at 11:17
  • https://learn.microsoft.com/en-us/windows/console/console-functions for complete current API (not sure how to filter out between win7/win10, I don't use windows at all) – Ped7g Sep 04 '17 at 11:19

0 Answers0