Skip to content
← Back to Community
QBASIC
Profile icon
drloh

The COLOR command does not change colour of text?
Is it the compiler error?

Voters
Profile icon
AadityaThapa
Profile icon
RITWIKKUMARKUMA
Profile icon
drloh
Comments
hotnewtop
Profile icon
TannerTommy

The color command for me isn't working either, I just don't know what to do now. I first heard about this function on https://www.fingerlakes1.com/2021/12/15/3-the-best-essay-writing-services-for-college-students/ and I've been making use of it ever since. Overall, it's just such an important function to be honest.

Profile icon
timmy_i_chen

This might be because of our QBasic implementation, which is actually written in JS - it uses qb.js: http://stevehanov.ca/blog/index.php?id=92

Profile icon
drloh

The COLOR command doesn't work.

Profile icon
drloh

DIM SHARED MY_GLOBAL AS STRING
MY_GLOBAL = "Starting value"
DECLARE SUB Quack (Q)
SUB Quack (Q)
COLOR 12,1
PRINT MY_GLOBAL, Q
END SUB
Quack 13
MY_GLOBAL = "New Value"
Quack 42

Profile icon
AlephZero

Can you please link the repl you are referring to? Thanks!