How do I open a console Window

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Redlion
Posts: 94
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

How do I open a console Window

Post by Redlion »

Hi all,

How do I open a console window in Hollywood 6,

I would like to output some info to the console and be able to see the resulting messages returned.

Not sure where to start with this one. I was trying OpenFile() but with not luck.
Can anyone show me how to do it.

Thanks
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Murmel
Posts: 31
Joined: Mon Apr 12, 2010 9:03 pm

Re: How do I open a console Window

Post by Murmel »

sorry Bullshit ;)
User avatar
Redlion
Posts: 94
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I open a console Window

Post by Redlion »

@ Murmel

??????
@ all,

I think that Console may be the wrong word to use. Shell might be better, I want to see the output from CLI window.

Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
p-OS
Posts: 167
Joined: Mon Nov 01, 2010 11:56 pm

Re: How do I open a console Window

Post by p-OS »

User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How do I open a console Window

Post by airsoftsoftwair »

You can use DebugPrint() as p-OS suggested or if you want to have full control, you can also open a console file handle using the CON: handler, i.e. something like this:

Code: Select all

OpenFile(1, "CON:0/0/640/480/My console", #MODE_WRITE)
WriteLine(1, "Hello Console!")
FlushFile(1)
...
It's important to call FlushFile() to flush the output into the console window. Check out the AmigaDOS reference manual for the full syntax of the CON: handler. It accepts some other arguments like AUTO, CLOSE, WAIT, SCREEN, etc. See here:
http://wiki.amigaos.net/wiki/AmigaDOS_D ... Output#CON:
Post Reply