PAPER and INK commands

Everything related to BASIC version 1.x (Oric 1 and Atmos) or HYPERBASIC (Telestrat).
Don't hesitate to give your small program samples, technical insights, or questions...
Post Reply
Chris
2nd Star Corporal
Posts: 29
Joined: Tue Jun 05, 2007 1:45 am
Location: Oregon, United States
Contact:

PAPER and INK commands

Post by Chris » Wed Jun 06, 2007 6:12 am

Basically, what are they and how do they work? Is PAPER the background color and INK the text color? How would I change the colors of these? I am new to BASIC in Oric, needless to say.

User avatar
Pengwin
Pilot Officer
Posts: 67
Joined: Sun Jan 07, 2007 11:03 pm
Location: Scotland
Contact:

Post by Pengwin » Wed Jun 06, 2007 9:34 am

The two commands PAPER and INK control the colours of the paper and ink :wink:

Both take a parameter of 0 to 7 with the colours corresponding thus:

0 - black
1 - red
2 - green
3 - yellow
4 - blue
5 - magenta
6 - cyan
7 - white

In text mode, these commands will change all attributes in screen. I'm afraid it's been a while since I've done much coding on the Oric and I cannot remember the impact in Lores 0 or Lores 1. I believe Hires is the same as text mode regarding the colours.

So...in Text mode the following would give you yellow text on a blue screen:

INK 3: PAPER 4

User avatar
Dbug
Site Admin
Posts: 2360
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Thu Jun 07, 2007 11:17 pm

Two know more about colors on the Oric, I can advise you to read this document:

http://www.defence-force.org/download/c ... nglish.txt

After reading it, you should understand easily that PAPER just set the value "16+color" in column 0, and INK set the value "color" in column 1.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest