How do I open a console Window

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

How do I open a console Window

Post by Redlion » Tue Jan 19, 2016 3:28 am

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 » Tue Jan 19, 2016 5:19 am

sorry Bullshit ;)

User avatar
Redlion
Posts: 71
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I open a console Window

Post by Redlion » Tue Jan 19, 2016 11:31 am

@ 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: 89
Joined: Tue Nov 02, 2010 12:56 am

Re: How do I open a console Window

Post by p-OS » Tue Jan 19, 2016 12:19 pm

Try DebugPrint()

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

Re: How do I open a console Window

Post by airsoftsoftwair » Wed Jan 20, 2016 8:23 pm

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