Page 1 of 1

OpenConsole() not working on Mac OSX?

Posted: Thu Apr 16, 2020 2:13 am
by StPaul
Been out of the loop with pure basic a few years.
Upgraded Mac OSX from Snow Leopard to High Sierra 10.13.6
Pure Basic quit working
Added X-Code 9 to Mac per forum suggestion. Can not get 10.1 any more
Pure Basic working with debug and with MessageRequester
BUT I can't seem to get an OpenConsole. No errors, just no console.

OpenConsole()
Print("Press enter to exit")
Input()
End

Attempted to load hybrid leading to X-Code 10-2-1.
Pure Basic still works, But OpenConsole() has no effect. The input command above does not interrupt the code. ANY IDEAS? I really do like PureBasic & would like to get back to it now I am retired & have time.

Re: OpenConsole() not working on Mac OSX?

Posted: Thu Apr 16, 2020 3:55 am
by StPaul
Hi Everybody,

About my previous posting. Problem solved. I found this old reply from Fred, a long time ago. It fixes the issue I was having with OpenConsole(). I am quite happy I can return to my old ways of programming with pure basic! No more Matlab. Maybe a bit of Python.

This is a great forum & a wonderful product. Thank you everyone.

StPaul

Fred's Reply is Below:
Just ensure you call it (for crossplateform reason) and you set the executable type as "Console" in the compiler options and it should be fine.