>Omikron.Basic< How do I set the color for PRINT?

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 535
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

>Omikron.Basic< How do I set the color for PRINT?

Post by Omikronman »

Hello :)

In the Omikron.Basic manual I found the ESC sequence ESC+b x" to change the text color of the print command, where x is the number of the color. For couriosity I can not get some colors because I can only use the numbers 0 to 9. So black, dark green and some others are missing. How do I get them?

Tnx ^^
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13004
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by wongck »

Is this outputting to the TOS screen right, if so I suspect this to be VT52 colours code 0-9 and possibly A-F for 16 colors.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 535
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by Omikronman »

I did try to use A to F in addition and yes, the colors go on changing but only begin to repeat instead of giving the missing ones. :(
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2542
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by lp »

Omikronman wrote:Hello :)

In the Omikron.Basic manual I found the ESC sequence ESC+b x" to change the text color of the print command, where x is the number of the color. For couriosity I can not get some colors because I can only use the numbers 0 to 9. So black, dark green and some others are missing. How do I get them?
It works in GFA.
x is not a number nor hex. x = ascii value, thus:
PRINT chr$(27)+"b"+chr$(x); !where x=0 to 15
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13004
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by wongck »

Ah yes. Sorry I did mean Hex 0x01 to 0x0F but I do not know how to do that in BASIC
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
kolli
Atari nerd
Atari nerd
Posts: 45
Joined: Sat Jul 23, 2016 7:37 pm

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by kolli »

Omikronman wrote:Hello :)
In the Omikron.Basic manual I found the ESC sequence ESC+b x" to change the text color of the print command, where x is the number of the color. For couriosity I can not get some colors because I can only use the numbers 0 to 9. So black, dark green and some others are missing. How do I get them?
Tnx ^^
Look:
You do not have the required permissions to view the files attached to this post.
kolli
Atari nerd
Atari nerd
Posts: 45
Joined: Sat Jul 23, 2016 7:37 pm

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by kolli »

Omikronman wrote:Hello :)
In the Omikron.Basic manual I found the ESC sequence ESC+b x" to change the text color of the print command, where x is the number of the color. For couriosity I can not get some colors because I can only use the numbers 0 to 9. So black, dark green and some others are missing. How do I get them?
Tnx ^^
Look here:
You do not have the required permissions to view the files attached to this post.
User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 535
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by Omikronman »

Great, thanks! :)
rockyone
Atari Super Hero
Atari Super Hero
Posts: 531
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by rockyone »

You can also change the color of the background

Image
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13004
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by wongck »

If it is VT52 controls code then according to the Wiki you can do a bunch of stuff;
https://en.wikipedia.org/wiki/VT52#GEMD ... extensions
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 535
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

Re: >Omikron.Basic< How do I set the color for PRINT?

Post by Omikronman »

Yes, the esc codes are mentioned in the manual as well. Some of them I used often. :)
Post Reply

Return to “Other BASIC”