how to show text

Linux specific forum
bernardfrancois
User
User
Posts: 47
Joined: Tue Sep 02, 2003 9:17 am
Location: Belgium
Contact:

how to show text

Post by bernardfrancois »

Hello,

I'm new to PureBasic. I'm looking for the command to print text on the screen. The print command only works in a console window in windows, and the drawtext command doesn't work in linux...

Anyone who knows how I can do this in Linux? (is there a method that works in Windows, AmigaOS and Linux?)

Greetz,

Bernard
Fred
Administrator
Administrator
Posts: 16690
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Will be possible with the next version, for now you can't, as this function isn't implemented.
bernardfrancois
User
User
Posts: 47
Joined: Tue Sep 02, 2003 9:17 am
Location: Belgium
Contact:

Post by bernardfrancois »

so in linux-PB there's no way to show text, for example in the interface of a game???
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Post by Brujah »

I had the same problem.
And I fixed it :-)
I wrote a nice little routine that uses sprites to show text.
(Is slow but works... Good until the new version is out...)
Are you interested in this ?
I can mail it to you...
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

print

Post by pbdep »

Hiya,

If you want to print to a TERMINAL console it should work, though not
the way windows does. (you could write you own lib calls to Curses)

If you want to use GUI for this have a look at the GTKSERVER at http://www.turtle.dds.nl/gtk-server/index.html

Alll GTK routines directly from within scripts ;-) Pritty easy...

Greetings, Pbdep.
bernardfrancois
User
User
Posts: 47
Joined: Tue Sep 02, 2003 9:17 am
Location: Belgium
Contact:

Post by bernardfrancois »

can you show me some example code of this?

in fact I don't have linux... but if would be nice if I could just replace some lines and compile as a linux executable (but that requires the linux version which only runs under linux?) :?
Post Reply