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

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

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

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

Postby Omikronman » Fri Mar 03, 2017 2:18 am

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: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

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

Postby wongck » Fri Mar 03, 2017 12:26 pm

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 14+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: 525
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

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

Postby Omikronman » Fri Mar 03, 2017 6:32 pm

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: 2257
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

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

Postby lp » Fri Mar 03, 2017 6:55 pm

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: 11990
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

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

Postby wongck » Sat Mar 04, 2017 12:52 am

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 14+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 User
Atari User
Posts: 31
Joined: Sat Jul 23, 2016 7:37 pm

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

Postby kolli » Sat Mar 04, 2017 8:01 am

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 User
Atari User
Posts: 31
Joined: Sat Jul 23, 2016 7:37 pm

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

Postby kolli » Sat Mar 04, 2017 8:03 am

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: 525
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

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

Postby Omikronman » Sat Mar 04, 2017 4:45 pm

Great, thanks! :)

rockyone
Captain Atari
Captain Atari
Posts: 344
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

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

Postby rockyone » Sun Mar 05, 2017 8:19 am

You can also change the color of the background

Image

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

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

Postby wongck » Sun Mar 05, 2017 9:04 am

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 14+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: 525
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

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

Postby Omikronman » Sun Mar 05, 2017 8:50 pm

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


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 1 guest