I need to write a program to run on openSUSE that can be used in both a GUI and character interface. It requires an interface similar to “yast” that runs in either environment. I am wondering what programming tools are used by “yast” that gives it that capability.
mtmigs wrote:
> I need to write a program to run on openSUSE that can be used in both a
> GUI and character interface. It requires an interface similar to “yast”
> that runs in either environment. I am wondering what programming tools
> are used by “yast” that gives it that capability.
What you really want is to abstract your application logic from the user
interface. Once you have a clear abstraction, it’s easy to implement any
of these:
- command line interface
- ncurses interface
- call interface (C, python, ruby, php bindings)
- graphical (GTK,QT…) interface
- network service interface
and so on. Have fun…
Kind regards,
Andreas Stieger
That has already been done. It has been abstracted into three sections. The interface control, the interface logic, and the subsequent command line programs used for batch processing the data.
However, I was trying to avoid writing two different interface controls; one for GUI and one for character based terminals.
So I will repeat my question, I am wondering what programming tools are used by “yast” that gives it that capability.
mtmigs wrote:
> So I will repeat my question, I am wondering what programming tools are
> used by “yast” that gives it that capability.
YaST2 uses his own YCP language and multiple frontends for it’s backend,
in pretty much the architecture outlined before. Refer to it’s developer
documentation.
Kind regards,
Andreas Stieger