Questions tagged [dialog]
The dialog tag has no usage guidance.
107
questions
1
vote
2
answers
21
views
What is the practical consequence of the message "unable to initialize frontend: Dialog" when installing packages in a non-standard shell?
When I install some software packages from Emacs in a non-interactive shell, say from an org-babel file some of the packages result in the message below:
debconf: unable to initialize frontend: Dialog
...
0
votes
0
answers
23
views
dialog checklist from mysql
I have a todo list in mysql. I want to make it more interactive using dialog.
#!/bin/bash
mapfile -t todo < <(mysql -uroot -hmy_host -p$my_pass -Dmy_db -BNe "select task from todo where ...
1
vote
1
answer
314
views
Can I somehow use a different file picker dialog than GNOME/GTK's own?
I use the Cinnamon desktop environment on my Devuan Daedalus GNU/Linux machine. I like Cinnamon well enough (better than the other DEs available obviously), but - I'm not a fan of GTk, and most ...
0
votes
0
answers
52
views
Any way to jump to the specific location in file dialog boxes?
Is there a way to enter the location manually? I could copy the location from the right-click menu, but can't paste it from clipboard or jump to desired location fast. Do I really need to dig through ...
0
votes
0
answers
74
views
Dialog --mixedgauge help
I currently use
wget "url1" 2>&1 | stdbuf -o0 cut -b 63-65 | stdbuf -o0 grep '[0-9]'| dialog --gauge "Download Manager" 0 0
This shows the exact and perfect dialog while ...
3
votes
1
answer
253
views
How can I paste full path strings in the GNOME File Selection Dialog on RHEL?
I have a remote RHEL machine which I use via X11. On that machine when I open a new file in, say, VS Code or in the Firefox browser (both apps are on teh remote machine), then I get teh following File ...
1
vote
3
answers
229
views
Get stderr after redirecting output to dialog gauge
I am using a python file to scrape a link, but to do that it takes some time, it prints 33, 66 and 100 normally and print the link to stderr using sys.write.stderr(var)
Now, I want to run this command ...
1
vote
0
answers
109
views
is there a list of minimum term capabilities for dialog(ncurses)?
I'm trying to write some code using the ncurses dialog library (available everywhere, source mirror is here) and I'm trying to decide dynamically in code whether to use dialog or just print to stderr ...
0
votes
0
answers
639
views
Dialog --menu bash
I just started to learn bash and create a gui with Dialog, but I'm having a problem with my program, any help will be appreciate it. Thanx
I want to create a program wich will display a dialog wich ...
2
votes
1
answer
155
views
trap is ignored when dialog is running with custom BASH_XTRACEFD
I have following script
#!/bin/bash
exec 5> >(logger -t $0)
BASH_XTRACEFD="5"
set -x
trap _reboot INT
DIALOG_TITLE="This is fancy dialog title"
_reboot() {
echo ...
0
votes
1
answer
215
views
how to make GNOME Dialog boxes
So I have played around with Zenity on a few Linux distros, but I haven't ever been able to achieve this effect:
So My question is, how do I create one of these dialog boxes? I would like to have ...
2
votes
1
answer
718
views
How to "not clear" the screen when using dialog?
dialog is a great tool but I can't find a way to use it in a bash script where it would NOT clear the screen beforehand.
I know this is possible if I use --keep-window in conjunction with --and-widget ...
0
votes
1
answer
177
views
Dialog progress bar for unsquashfs
Part of my dialog-based program involves running unsquashfs on a file to extract it to a directory. I'm trying to make a progress bar for this operation to show its progress using the --gauge option. ...
1
vote
1
answer
2k
views
Progress bar "dialog" to show progress based on command execution from function [duplicate]
How to make "dialog" progress bar increasing the counter, when each echo command is executed from function?
I have this code below as example, but I'm having problem of catching when command ...
1
vote
2
answers
591
views
No keyboard output on terminal after running a script using read and whiptail
I've written a bash function that accepts a command as an argument, runs it in the background, and allows the user to kill the command by pressing any key. This part works fine.
However, when I pipe ...
0
votes
1
answer
1k
views
PV command to show progress in Dialog with transfer rate in Mbits
I am using PV -n command to read partitions and using gzip with pipe to compress the read data and storing the file. While data is read and written I am using a while loop to show progress using linux ...
0
votes
0
answers
1k
views
Available colors in Dialog
In dialog command, we can use a .dialogrc file to define the dialogs styles. By default it uses the 8 terminal colors, I would like to know if I can use more than 8, like dark green and how do I ...
1
vote
1
answer
250
views
Has dialog's --checklist box type a possibility for horizontal srolling or \n (newline) interpretation?
I use dialog version: 1.3-20210324
Given:
LIST_ITEMS=(
"1." "A ... very ... very ... looooong ... Informationtext" "off"
"2." "A ... very ... very ... ...
1
vote
1
answer
332
views
Is it possible to edit a file in whiptail?
For a new TUI, I want to employ whiptail or dialog to make it a bit more visually appealing. Afaik, whiptail is more widely available and even preinstalled on many systems, which is a good reason to ...
0
votes
1
answer
708
views
Zenity buttons not working
So i can't figured out why my cancel button is not working on the confirmation delete zenity box... Can you please explain me ?
directory=$(zenity --entry \
--text "Enter a path" \
--...
1
vote
1
answer
483
views
How to capture/ignore ESC during the execution of dialog?
Currently playing around with the dialog command and I have noticed that when I press Shift-Tab or press ESC, the execution immediately exits and I am back on the command prompt. Since this is not a ...
0
votes
3
answers
1k
views
How to force Dialog to write checklist selections onto sperate lines in a variable
I am using the below code to present users with a menu for them to select which software they would like to install. I then want to use the selections as function calls to perform the installs.
...
0
votes
1
answer
74
views
disk usage + dialog = graphic interface for disk usage vs disk capacity?
I wonder if it is possible to use dialog gauge option to create a graphic displaying the percentage of disk used vs disk capacity? And if so, how could I do it?
Generically speaking, how can I use ...
0
votes
1
answer
898
views
How to prevent prompt that asks to restart services when using preseed files
I have set up a custom installation CD based on Debian/Ubuntu. It completely automates the installation apart from asking for the hostname and the system account's password. All was working as ...
1
vote
1
answer
382
views
Displaying a picture on the framebuffer while running a script created with dialog
I have setup scripts that use the dialog command. They are used to prepare embedded servers.
I'd like to display a picture on a edge while a dialog script is running. The problem is, that dialog by ...
0
votes
1
answer
286
views
Is it possible for dialog gauge to track an install
I'm currently using the --gauge option of dialog to increment a progress bar as a few tasks are completed eg:
(
echo 20; echo "XXX"; echo "Task 1"; echo "XXX" ; #Task 1 here
sleep 2 ;
echo 40;...
1
vote
1
answer
555
views
Why is default Dialogrc file making screen monochrome?
I have a bash script where I have the following code:
if [ ! -f /home/tools/test.dialogrc ]
then
dialog --create-rc "/home/tools/test.dialogrc"
fi
Which successfully creates a test.dialogrc file ...
3
votes
1
answer
479
views
Is it possible to pass commands as variables to a --dialog script?
Currently I have the below dialog function that I am trying to make into a reusable yes/no prompt where I will be able to call it using YesNoPrompt followed by variables it will be needing.
The ...
-1
votes
1
answer
2k
views
bash dialog prevent exit
I have a bash script with dialog --checklist
This comes with an OK and cancel button.
When I press cancel, the script exits and returns to shell.
How do I remove the cancel button or prevent the ...
2
votes
3
answers
618
views
Origins of the "save changes" modal dialog's use of "close without saving", its lack of keyboard accelerators, and how to interact with these dialogs
Coming from Windows, I am very accustomed to the very common "save changes" modal dialog providing a "yes/no/cancel" option with "Y" and "N" being provided as keyboard accelerators (shortcut keys).
...
1
vote
2
answers
571
views
Dialog/Application before login/desktop-manager comes up
After a preseed installation of ubuntu (or any linux dist) I want to display a message/warning for the user that some installation or configuration is happening during the first boot. Unfortunately ...
2
votes
0
answers
140
views
KDE/Qt file dialogs locking up on network drive problem -- how to disable network drive queries
First of all, I am aware that when a network mount (CIFS or NFS for example) has a broken connection, blocking is an expected behaviour to avoid data and filesystem corruption -- referring to these ...
1
vote
1
answer
175
views
Open input dialog via script on x server
I want to make a script with an if that only runs if the user Input the Right password.
Like this:
Some Code..
if(Input == "password"){
Do something
}
More Code..
Everything runs on a x Server ...
1
vote
1
answer
369
views
how to change the input box color while using form property in shell script using dialog
how to change the input box color while using form property in shell script using dialog
1
vote
0
answers
362
views
Make text default selected in dialog inputbox
I'm using dialog for a terminal GUI and I have a inputbox where I would like to have the text $1 default selected when it is displayed in the GUI. I want to be able to start writing new input directly,...
5
votes
1
answer
2k
views
Shell exits when I source a script with dialog/whiptail call
I have the following script:
#!/bin/bash
set -e
TITLE="Choose version"
VERSIONS=$(cat <<'END'
AAA
BBB
END
)
VERSION_LIST=$(echo "$VERSIONS" | awk '{print NR, " ", $0}')
INDEX=$(whiptail \
...
1
vote
1
answer
585
views
dialog menu - set hotkey colors?
I've created a menu system with dialog to launch various programs and OSes in DosBox, VirtualBox, and natively. Almost everything works as well as I could ask. I do have one little cosmetic nit-pic ...
0
votes
1
answer
297
views
Lack of a text input field in zenity file selector
I have Debian 9 with xfce and installed zenity to use it to select directory paths. I use it in this way
zenity --file-selection --directory
The GUI selector looks as below. It has not the text ...
0
votes
1
answer
606
views
Create dialog based on console output
I would like to display a dialog box using zenity or dialog or something similar based on a specific string displayed in console window?
Background:
I have created a wrapper shell script which calls ...
0
votes
1
answer
818
views
Dialog menu - Space between menuitems
I want to add a some space between the menuitems of a dialog menu.
Is there any way to do it?
I created a menu, with "empty Buttons" which call the menu again. This looks like what i want.
But the ...
3
votes
2
answers
2k
views
dpkg-reconfigure: what packages are supported?
dpkg-reconfigure gives a way to set options for installed packages in a "user-friendly" way (e.g. not editing files but selecting from dialogs).
How can I find out what package has such options? e.g. ...
1
vote
3
answers
1k
views
bash output create file with dd /dev/zero with dialog --gauge
I am trying to create a new file (blank file) with:
dd if=/dev/zero of=file.txt count=10240 bs=10240
I also want to use dialog output --gauge, something like this:
dd if=/dev/zero | pv | dd of=...
0
votes
1
answer
1k
views
How to work around terminal artifacts when using dialog program under docker, running in a screen session
all.
The question is about the setup that you can find here: https://github.com/filmil/bugreports/blob/master/dialog/README.md
I noticed that running a dialog utility in an interactive docker ...
1
vote
1
answer
789
views
Download Manager with Dialog
I'm trying to make a download manager with dialog, but I can't display download history (function view_history) with infobox.
Error: Expected no more than 3 tokens for --infobox, have 5.
Use --help ...
0
votes
1
answer
2k
views
dialogrc file doesn't change coloring of menu boxes and text
I am using the dialog tool (based on ncurses) to create small windows for a limited UI.
However, I can't get colors. Whate ever I do doesn't change the default colors of the terminal.
I create after ...
0
votes
1
answer
2k
views
dialog --menu outputs integer instead string on bash
I created a dynamic menu in bash that get it's items from a array, but when the user select a specific item, the menu displays the return code (0 or 1)
repositorios=() ; i=0
while read -r line; do
...
0
votes
1
answer
800
views
can't output dialog value on bash
I have a dynamic menu on dialog (the items are provided from an array) but the menu is not displaying the selected option
gp_options=()
for i in `find ~ -type d -name .git`; do
gp_options+=("" "$...
1
vote
1
answer
3k
views
Here-document not working properly on shell script
I have two files: server.sh and client.sh, the server sends the following text to the client
client.sh
porta_cliente=5678
porta_servidor=8765
nc -l $porta_cliente | sh
server.sh
porta_cliente=...
1
vote
2
answers
1k
views
How can i execute text as code from server to client on shell script (netcat)
I have two files, client.sh and server.sh, all the necessary data is on the server, which is sent to the client using netcat, the client just get these data and display it to the end user, the problem ...
14
votes
1
answer
42k
views
How can I keep netcat connection open?
I have two files, client.sh and server.sh. All the necessary data is on the server, which is sent to the client using netcat. The client just get these data and display it to the end user. The problem ...