Page 1 of 1

how to show text

Posted: Tue Sep 02, 2003 9:26 am
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

Posted: Tue Sep 02, 2003 10:43 am
by Fred
Will be possible with the next version, for now you can't, as this function isn't implemented.

Posted: Tue Sep 02, 2003 10:46 am
by bernardfrancois
so in linux-PB there's no way to show text, for example in the interface of a game???

Posted: Mon Nov 03, 2003 7:47 pm
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...

print

Posted: Sat Nov 08, 2003 12:09 pm
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.

Posted: Wed Jan 14, 2004 3:43 am
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?) :?