Just getting started.... or not

Mac OSX specific forum
marksmithhfx
New User
New User
Posts: 3
Joined: Fri Dec 29, 2017 4:46 am

Just getting started.... or not

Post by marksmithhfx »

I downloaded PB, fired it up. Typed in the following

Code: Select all

OpenConsole()
Print("Press enter to exit")
Input()
End
and nothing happened. I mean it said it compiled and everything but no output window appeared, no message appears, nor wait for input either.

Any suggestions?

Thanks
Mark
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Just getting started.... or not

Post by davido »

Welcome to PureBasic.

I am presuming that you are using OSX on a Mac.

It works on my PC but not on my Mac and since I've never used the Console, I always use gadgets, I cannot say why.
However, the following Thread may assist you:
http://www.purebasic.fr/english/viewtop ... 16#p367816
DE AA EB
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Just getting started.... or not

Post by wilbert »

marksmithhfx wrote:nothing happened. I mean it said it compiled and everything but no output window appeared, no message appears, nor wait for input either.

Any suggestions?
Set the executable format to "Console" (Compiler > Compiler Options)
Windows (x64)
Raspberry Pi OS (Arm64)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Just getting started.... or not

Post by davido »

@wilbert,
Thank you.
DE AA EB
marksmithhfx
New User
New User
Posts: 3
Joined: Fri Dec 29, 2017 4:46 am

Re: Just getting started.... or not

Post by marksmithhfx »

wilbert wrote: Set the executable format to "Console" (Compiler > Compiler Options)
Thanks, it worked. Now I understand what "console" was referring to.

Onwards :)
marksmithhfx
New User
New User
Posts: 3
Joined: Fri Dec 29, 2017 4:46 am

Re: Just getting started.... or not

Post by marksmithhfx »

davido wrote:Welcome to PureBasic.

I am presuming that you are using OSX on a Mac.
However, the following Thread may assist you:
http://www.purebasic.fr/english/viewtop ... 16#p367816
Thanks David. Yes, the console is fairly useless as an I/O device (I mean, I don't think anyone would write an actual program to do that). I'll be looking for other ways to do this (a dialog box would be ideal). Much to learn.

Thanks for being so quick to respond. I'm sure I will need lots of help.

Mark
Post Reply