Noob wondering.

Just starting out? Need help? Post your questions and find answers here.
lurah
New User
New User
Posts: 3
Joined: Mon Sep 04, 2006 10:01 am
Location: Finland
Contact:

Noob wondering.

Post 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.
Something funny or clever should read here...?
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post 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.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
John Bedlam
User
User
Posts: 11
Joined: Thu Aug 31, 2006 2:29 pm

Post 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
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post 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.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
John Bedlam
User
User
Posts: 11
Joined: Thu Aug 31, 2006 2:29 pm

Post by John Bedlam »

Ah, okay. Didn't know that. I need a Linux box... :roll:
lurah
New User
New User
Posts: 3
Joined: Mon Sep 04, 2006 10:01 am
Location: Finland
Contact:

Post 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)
Something funny or clever should read here...?
hardfalcon
User
User
Posts: 89
Joined: Fri Apr 29, 2005 3:03 pm
Location: Luxembourg
Contact:

Post 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:
"And God caused a deep sleep to fall upon Adam, and he slept: and he took one of his ribs, and closed up the flesh instead thereof; And the spare rib, which God had taken from man, made he a woman, and brought her unto the man"
lurah
New User
New User
Posts: 3
Joined: Mon Sep 04, 2006 10:01 am
Location: Finland
Contact:

Post 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:
Something funny or clever should read here...?
Post Reply