LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2018, 09:22 PM   #31
Jim232
Member
 
Registered: Apr 2018
Posts: 53

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by scasey View Post
Could you shorten the first param?

Well, sort off.
As I mentioned, I am using the original script to build my modifications onto.
The "main" menu works with functions, hence the first parameter is pretty short.
I thought using first parameter directly , as a command, will be easy to do.
It did , until I run into this. ( Yes, I could add "menu functions" ....)
One of my primary objective was to simplify WiFi installation / configuration.
Then I found out that there are about four different ways / main commands to do that and most of them require setting options to be useful.
That is how the first parameter got quickly out of hand as far as width.

I do have a "custom menu" where I can build / delete a command parameter without going thru bash rebuild.
Perhaps when I get more "bash" experience I could figure out how to build "base command" and add parameters as needed.


Code:
"1" "Change password for the current user"
I guess I don't see why the repeated text...
again yu are looking at "work in progress"....

I'm tinkering, but haven't got it to work yet...

Whoops, I need to add "message'.......inserts do not count!
 
Old 10-09-2018, 12:28 AM   #32
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,456
Blog Entries: 9

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
Quote:
Originally Posted by Jim232 View Post
From my (short) experience with whiptail - I call it "temperamental" mainly for unpredictable display which depends on overall dimensions.
As an example - setting numbers of vertical lines makes --menu option text disappear.

I was actually trying to figure out how to add "tooltip" or "F1" type of help access.

Yes, I do agree there are many ways "to skin a cat" and I was concentrating on common "scroll bar control" - in horizontal way. Changing overall "window" dimensions is doable indeed.

And reason for multi line - some of the "commands" I use - first parameter - are pretty long , hence I run out of displayable text in description parameter.
i'm sure you're right, but please keep in mind that there's only so much you can do with a text user interface.
tbh, horizontal scrollbars (or any scrollbars) sounds like a lot to ask of what is probably an ncurses app.

there's probably a reason whiptail isn't widely used on Linuxes.
dialog, however, is - you might want to give that a try.

Quote:
Originally Posted by Jim232 View Post
I just checked "yad" and it is not available in Raspian. It would probably be overkill anyway.
other graphical menu builder apps: zenity gmessage xmessage Xdialog
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Whiptail “Command not Found” keyxmakerx Linux - Newbie 3 03-16-2016 10:49 AM
Help with bash/whiptail script capthookb Programming 12 01-06-2016 06:25 AM
bash: man: command not found Boleng Linux - Newbie 6 06-25-2008 02:44 AM
poor man alaios Linux - Laptop and Netbook 3 04-17-2004 10:11 AM
Can't get from command line interface to GUI dphildebrand Linux - Newbie 3 12-03-2003 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration