Yharooer
Posts: 14
Joined: Mon Jun 04, 2012 8:15 am

Creating a GUI without X?

Sat Sep 21, 2013 11:30 am

Hi,
Sorry, this is probably in the wrong place. I guess this isn't technically "graphics programming" but it kinda is...
I know there are many programs that create a "GUI" like raspi-config (ok, not exactly a GUI), and many emulators run from the text thing (is it called shell or bash?) and I'm pretty sure these don't use X.

So what software/how would I be able to create a simple GUI? Something like raspi-config would be OK, but a full GUI would be better. I want it so I select one option, it does apt-get update && apt-get upgrade or something like that.

And if I'm in the wrong section, I would be grateful if someone could move this post to the correct one. Thanks!

User avatar
joan
Posts: 15092
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Creating a GUI without X?

Sat Sep 21, 2013 11:48 am

I think raspi-config uses the whiptail package.

Yharooer
Posts: 14
Joined: Mon Jun 04, 2012 8:15 am

Re: Creating a GUI without X?

Sat Sep 21, 2013 11:56 am

Thanks, I'll take a look later.

Do you know if the options in Whiptail can change? ie. search a certain directory and create a new menu option for each file.

User avatar
joan
Posts: 15092
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Creating a GUI without X?

Sat Sep 21, 2013 12:07 pm

Yharooer wrote:Thanks, I'll take a look later.

Do you know if the options in Whiptail can change? ie. search a certain directory and create a new menu option for each file.
Sorry, never used it myself, I don't know.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Creating a GUI without X?

Sat Sep 21, 2013 12:10 pm

Yharooer wrote:Thanks, I'll take a look later.

Do you know if the options in Whiptail can change? ie. search a certain directory and create a new menu option for each file.
Whiptail is just a text-based graphical interface to a shell script. If the shell (bash) can be programmed to do it, you can ask whiptail to display it.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Yharooer
Posts: 14
Joined: Mon Jun 04, 2012 8:15 am

Re: Creating a GUI without X?

Sat Sep 21, 2013 12:17 pm

Ok, thanks. I'll take a look.

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Creating a GUI without X?

Thu Sep 26, 2013 11:28 am

Freepascal can do this using f.e. the TurboVision framework. (fbdev)
An example is the fp development environment.

mikerr
Posts: 2826
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Creating a GUI without X?

Thu Sep 26, 2013 12:01 pm

Yharooer wrote:Thanks, I'll take a look later.

Do you know if the options in Whiptail can change? ie. search a certain directory and create a new menu option for each file.
Not directly, but I needed to do that in my version of raspi-config (set wifi settings - not integrated into main release yet):
http://github.com/mikerr/raspi-config (lines 588-601)

What it does is write those options to a tempfile which is in the form of a shell script, and executes that file.

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: Creating a GUI without X?

Thu Sep 26, 2013 1:17 pm

Curses for text-mode UI
Framebuffer SDL for graphical UI (obviously more complicated)

Dave Driesen
Linux dev and oldskool elite

Return to “Graphics programming”