08 May 2021, 15:38 | #1 |
Amiga
Join Date: May 2021
Location: RB
Posts: 13
|
NPrint colour output
Hello AGAin o/
Is it possible to set color for ouput with NPrint (CLI)? I search a lot of documentation, forum & google But the only mention is the colour command. As I understand it, it is used to select a color for working with bitmap olny. I try use CLI escrape trick with echo like "*e[", but it looks like this is only used by the echo command itself. Perhaps there is an option to use ESC sequence like CHR$(27) + codes But honestly I haven't found anything similar. |
10 May 2021, 14:45 | #2 |
Registered User
Join Date: Jan 2009
Location: Barcelona / Spain
Posts: 432
|
If you are using a window you could try with WColour command
|
10 May 2021, 15:10 | #3 | |||
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
Quote:
Quote:
Quote:
Code:
NPrint Chr$(27), "[1mHello Bold World!" Code:
bold$ = Chr$(27) + "[1m" italic$ = Chr$(27) + "[3m" nobold$ = Chr$(27) + "[22m" highlight$ = Chr$(27) + "[33m" ; Rest of your program here NPrint bold$, "Bold", italic$, " Bold-Italic", nobold$, highlight$, " Highlighted italic" End |
|||
10 May 2021, 15:36 | #4 |
Amiga
Join Date: May 2021
Location: RB
Posts: 13
|
|
10 May 2021, 15:46 | #5 | |
Amiga
Join Date: May 2021
Location: RB
Posts: 13
|
Quote:
Fun fact though. If you output all this to the console that BlitzBasic itself opens, everything works ok: But if use the NoCli command and open an own Window, then NPrint show a square(unknown symbol code 27), and then [1m |
|
10 May 2021, 16:04 | #6 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
Yep, that's to be expected. The difference is that the console window is effectively text-based, and it's the console that interprets the escape codes, not the actual window. You can only really interact with it in terms of text. If you open your own window, it's essentially a blank graphics object, not a text window like the console, so it behaves more like a bitmap.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga 1000 composite video output (colour?) | vimfuego | support.Hardware | 11 | 22 April 2021 14:38 |
Will this output full colour range ? | kipper2k | support.Hardware | 3 | 02 July 2011 16:14 |
Colour issue | AtlasRapture | support.WinUAE | 7 | 17 July 2010 11:39 |
Colour space | absence | support.Hardware | 5 | 04 June 2009 14:57 |
A500 RCA output: blue colour problem | Old Fool | support.Hardware | 14 | 18 February 2009 08:48 |
|
|