[Gambas-user] text interface apps

Rolf-Werner Eilert eilert-sprachen at ...221...
Wed Aug 12 18:30:09 CEST 2009


Tomas Eroles i Forner schrieb:
> Hello all!
> I would like to know if it's possible, working with text apps, write 
> texts in the screen at any position.
> 
> An example: I learned programming with dBase III, and we used the command:
> 
> @2,5 SAY "Hello, what is your name?: " GET w_name
> 
> to write on the coordinates 2,5 on the screen the phrase Hello, what is...
> 
> Is it possible to do in GAMBAS?
> 
> Thanks in advance
> 

Linux terminal coordinates can have more than 80x25 characters (and 
mostly have). So it would be necessary to determine the size of the 
terminal prior to be able to set sensible coordinates. This is missing, 
as far as I know.

However, you can do simple output via PRINT, and if you confine it to 80 
x 25, it would be an easy thing to just CLS and overwrite the whole 
stuff with another 25 lines...

And yes: I don't think the special "graphical characters" like in DOS 
(ASCII > 128) exist on a Linux terminal, do they? So it would be 
somewhat difficult to build "mask" like things. Though Midnight 
Commander can do this, how does it handle this? Maybe special fonts for 
terminal output? And top has lines, too...

Interesting anyway!

Rolf





More information about the User mailing list