Subj : Re: More dumb questions
To   : echicken
From : Mortifis
Date : Fri Jul 19 2019 04:33 pm

>   Re: Re: More dumb questions
>   By: Mortifis to echicken on Fri Jul 19 2019 14:00:37

>  Mo> And yet another one, so when I say 'console' I am referring to running
>  Mo> via jsexec in a terminal and optput is stdout ... how does one change
>  Mo> font colors and the background color of an input ( readln() ) prompt?

> I don't think any of the basic output methods have any provisions for doing
> magic colour stuff, so you'd
> probably have to send escape sequences yourself.  It's possible that we have
> some JS libraries that might
> help with that, but I'd have to look (and it's more likely that they rely on
> stuff that the console
> object already does).

I see conio.textcolor and conio.textbackground but I am unsure how to use it
... I tried conio.textcolor=3 but it displays jibberish and completely hoses
the output



My teachers always said "You can't make a living looking out a window!", they
were wrong,  I drive truck :-P

---
� Synchronet � AlleyCat! BBS - http://alleycat.synchro.net:81