Code: Select all
printf "\e[104;93mbright yellow on bright blue\e[0m\n"
Code: Select all
printf "\e#3Double Height (implies Double Width)\n\e#4Double Height (implies Double Width)\n"
@Steffen
Thanks a lot for the Compiler Explorer link to the change console mode code. However, the assembler code shown there is somewhat convoluted... The way I write assembler code is simpler and more direct, similar to C code. Look it by yourself:
Code: Select all
invoke GetStdHandle, STD_OUTPUT_HANDLE ;EAX = console handle
mov hOutput, eax ;store it
;
invoke GetConsoleMode, hOutput, ADDR dwVariable;get console mode in dwVariable, EAX = 0 if fail
test eax, eax ;fail?
jz SHORT @F ;yes: jump
;
or dwVariable, ENABLE_VIRTUAL_TERMINAL_PROCESSING OR DISABLE_NEWLINE_AUTO_RETURN ;change mode
invoke SetConsoleMode, hOutput, dwVariable ;enable process of VT100 terminal sequences
;
@@: