[Gambas-user] ncurses fail. says Screen incorrectly overridden

Tobias Boege taboege at gmail.com
Wed Dec 9 18:19:16 CET 2020

On Wed, 09 Dec 2020, Bruce Steers wrote:
> Component=gb.image
> Component=gb.gui
> Component=gb.form
> Component=gb.ncurses
> Them's the components.
> i just made a test app using gb.gui (attached)
> It's got no code, no other gui components added just a form and 2 buttons.
> Sounds like are you saying gb.ncurses cannot be used if your app has a GUI?
> But i'm assuming i've misunderstood.

No, that's exactly right.

gb.ncurses gives your program the ability to have a terminal user
interface. It uses some of the same class names that the graphical
user interface components use, because it is also a type of user
interface, but it is a textual interfaces in the terminal, so the
interfaces are incompatible.

You cannot have both types of user interface in the same project,
you have to settle for one of them.

On Wed, 09 Dec 2020, Benoît Minisini wrote:
> Maybe Screen could be dynamic and auto-creatable in gb.ncurses? It will keep
> the backward-compatibility, and makes its interface compatible with gb.gui
> interface.

Unfortunately, the incompatibilities don't stop there. Window.Border
is an Integer in gb.ncurses (there are three types of border) and a
Boolean in gb.qt4, for example.


More information about the User mailing list