Subj : Re: More dumb questions To : Mortifis From : Digital Man Date : Fri Jul 19 2019 12:54 pm Re: Re: More dumb questions By: Mortifis to echicken on 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 > > Mo> running via jsexec in a terminal and optput is stdout ... how does > > Mo> one change font colors and the background color of an input ( > > Mo> 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 The conio stuff is *not* stdio. I would just stick to the basic write/writeln functions for a jsexec utility. See the other utility-like JS scripts for examples. digital man Synchronet/BBS Terminology Definition #47: MUD = Multi-User Dungeon Norco, CA WX: 80.8øF, 52.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs .