Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: scharmers on September 19, 2017, 08:01:30 PM

Title: Issue Printing to another screen
Post by: scharmers on September 19, 2017, 08:01:30 PM
I'm having color problems when printing to another screen.
I'm set up as follows:
One "background" screen (screen 0) that is used to display graphics.  It's 320,200,32 color
One "text box" screen (screen 0) that is used to display text.  It's 640,200,8 color.  I SCREEN DISPLAY the text box so that it occupies the bottom 1/3 of the monitor view.
I declared a good DEFAULT PALETTE before opening the screens so that colors 0-7 are fixed to what I want them.
The problem is this: whenever I PRINT to screen 1, the text printed ignores the INK color register I specify and always prints in black.
I've verified the color register values I set are global and picked up in the procedure where I do the printing.
The text box screen can be "hidden" by scrolling it down out of view using a SCREEN DISPLAY loop, and then reshown by scrolling it back up.
Any reason why text color is messed up in screen 1?

Thanks
Title: Re: Issue Printing to another screen
Post by: scharmers on September 19, 2017, 10:40:40 PM
LOL there's apparently a difference between PEN and INK.

Title: Re: Issue Printing to another screen
Post by: Sidewinder on September 20, 2017, 04:33:47 PM
Yes, there is a difference between PEN and INK.   :)

You can use the PEN and PAPER commands to set the foreground and background for text that is output with the PRINT command.  Otherwise, you can use the INK command to set the color for text that is output with the TEXT command.  The TEXT command is a graphics command which is why it uses the INK color.  It offers a way to print text anywhere on the screen, unlike PRINT which is limited to rows and columns.