Page 1 of 1

Noob wondering.

Posted: Mon Sep 04, 2006 10:13 am
by lurah
Hi all.
Im total noob with PB. I installed it like 2 hours ago and have readed parts of that pretty excellent online documentation you have.

I tested console.pb. It worked fine, except i didnt notice any effect by ConsoleTitle() or ClearConsole().

So i made this small thing, wich im goin to grow well-knwon "guess the number" game.

Code: Select all

    Title$  = "Guess the number!"


    OpenConsole()
    ConsoleTitle (Title$)
    ClearConsole()   
    Delay (4000)
    CloseConsole()
End
It compiles ok, but output is practically nothing.
lurah@PenguinLurah:~/Desktop/PureBASIC$ pbcompiler -e guess guessnumber.pb

******************************************
PureBasic Linux x86 v3.92 (Demo)
******************************************

Loading external modules...
Starting compilation...
9 lines processed.
Creating the executable.

- Feel the ..PuRe.. Power -

lurah@PenguinLurah:~/Desktop/PureBASIC$ ls
console.pb guess guessnumber.pb
lurah@PenguinLurah:~/Desktop/PureBASIC$ ./guess
lurah@PenguinLurah:~/Desktop/PureBASIC$
It just hangs on until Delay is done. No Title or console cleared.
Is it me or this demo im using? :lol:

(i bet it's me lol)

I tested console.pb example from documentions. It works fine, except ClearConsole() and ConsoleTitle() are totally useless ones.

I have Ubuntu dapper.

Posted: Mon Sep 04, 2006 12:23 pm
by Inf0Byt3
Try this: Hit Compiler options in the compiler menu and use the 'console' option for the executable format combobox. This should do it.

Posted: Mon Sep 04, 2006 12:54 pm
by John Bedlam
There is no compiler menu in Linux. No IDE even, if I remember correctly.

In the TODO file in the linux package I just pulled from purebasic.com:
Console:
ClearConsole: not supported
ConsoleLocate(): not supported
ConsoleColor(): not supported
ConsoleTitle(): not supported
ConsoleCursor(): not supported

Posted: Mon Sep 04, 2006 1:34 pm
by Inf0Byt3
There is an IDE... The PureBasic 3.94 for Linux has it included. I tested this myself, and it has the console procedures included too. You will find the IDE in the /compilers dir.

Posted: Mon Sep 04, 2006 1:48 pm
by John Bedlam
Ah, okay. Didn't know that. I need a Linux box... :roll:

Posted: Mon Sep 04, 2006 2:55 pm
by lurah
Actualy, i couldnt find IDE.
datakey engine3d.so Ogre.log plugins.cfg systembase.a
debugger.a fasm pbcompiler purebasic.exe
Thats my whole /compilers directory. I checked other directories too but couldnt find. Maybe because i have demo here?

@John Bedlam
Yeah, i didnt remember to check TODO. Sad, i like syntax of purebasic but since im not interested for graphical things so much (console freak forever lol) i only can wait until those console functions comes workable for *nix.

Thanks for answers 8)

Posted: Mon Sep 04, 2006 3:12 pm
by hardfalcon
Hmmm, in comparison to PB 3.94, there's missing a lot of stuff in your compilers directory... Isn't there a 3.94 demo for Linux available on purebasic.com?

If the IDE was there, you had two files, namely "purebasic" and "purebasic_gtk2" in there. "purebasic_gtk2" doesn't work with the actual GTK2 releases, but "purebasic" work quite fine. If you have installed the latest version of PB, you can copy the "purebasic" file in the /usr/bin/ directory (where "pbcompiler" is copied to, too), than it is available as a "global" command at the console. Otherwise, you always have to navigate to the purebasic directory before being able to open the PB IDE... :roll:

Posted: Mon Sep 04, 2006 4:10 pm
by lurah
Hi hardfalcon.

Only *nix demo package i did find was PureBasic 3.92 from purebasic.com downloads section.

I rechecked all directories and readed install, readme and todo files. All are installed and set upped as should.

IDE aint so big priority for me, since i like to use scite or gedit after i find syntax color plugins either of them. Alltho, black in white background is most familiar one :lol: