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
How do I open a console Window
How do I open a console Window
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Re: How do I open a console Window
sorry Bullshit
Re: How do I open a console Window
@ 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
??????
@ 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
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: How do I open a console Window
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:
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:
Code: Select all
OpenFile(1, "CON:0/0/640/480/My console", #MODE_WRITE)
WriteLine(1, "Hello Console!")
FlushFile(1)
...
http://wiki.amigaos.net/wiki/AmigaDOS_D ... Output#CON: