Questions tagged [dialog]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
14 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 ...
user avatar
0 votes
1 answer
20 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 ...
user avatar
0 votes
1 answer
114 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 ...
user avatar
0 votes
1 answer
41 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. ...
user avatar
  • 217
1 vote
1 answer
424 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 ...
user avatar
2 votes
2 answers
115 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 ...
user avatar
  • 35
0 votes
0 answers
20 views

Variable data that contains new lines in Bash Dialog are not remembered

I have a variable called $software which contains following data including many new lines. See below $software variable data. If I echo "$software" or echo $software I can see this data. ...
user avatar
0 votes
1 answer
302 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 ...
user avatar
0 votes
0 answers
264 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 ...
user avatar
  • 129
1 vote
1 answer
82 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 ... ...
user avatar
1 vote
1 answer
110 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 ...
user avatar
  • 135
0 votes
1 answer
233 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" \ --...
user avatar
1 vote
1 answer
211 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 ...
user avatar
  • 339
0 votes
3 answers
415 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. ...
user avatar
  • 1
0 votes
1 answer
50 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 ...
user avatar
  • 123
0 votes
1 answer
440 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 ...
user avatar
2 votes
1 answer
245 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 ...
user avatar
0 votes
1 answer
185 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;...
user avatar
  • 13
1 vote
1 answer
414 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 ...
user avatar
  • 13
3 votes
1 answer
198 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 ...
user avatar
  • 31
0 votes
1 answer
1k 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 ...
user avatar
2 votes
3 answers
454 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). ...
user avatar
  • 2,175
1 vote
2 answers
344 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 ...
user avatar
  • 21
2 votes
0 answers
83 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 ...
user avatar
  • 11.9k
1 vote
1 answer
115 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 ...
user avatar
  • 145
1 vote
1 answer
211 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
user avatar
1 vote
0 answers
217 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,...
user avatar
4 votes
1 answer
1k 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 \ ...
user avatar
1 vote
1 answer
359 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 ...
user avatar
0 votes
1 answer
239 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 ...
user avatar
  • 600
0 votes
1 answer
430 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 ...
user avatar
0 votes
1 answer
599 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 ...
user avatar
  • 80
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. ...
user avatar
  • 489
1 vote
3 answers
764 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=...
user avatar
  • 149
0 votes
1 answer
690 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 ...
user avatar
  • 11
1 vote
1 answer
600 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 ...
user avatar
  • 133
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 ...
user avatar
  • 27
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
563 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+=("" "$...
user avatar
1 vote
1 answer
2k 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=...
user avatar
1 vote
2 answers
748 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 ...
user avatar
14 votes
1 answer
30k 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 ...
user avatar
0 votes
1 answer
180 views

Computer Architecture in dialog script

I would like to make a program with dialog that shows my ComputerArchitecture. But i have some false outputs. This is my script: #!/bin/bash # ComputerArchitecture_interactive_dialog: an interactive ...
user avatar
  • 1
2 votes
1 answer
81 views

Can't figure out what command to use for folders

So I'm making a batch script to convert images (png, jpg) and resize (in pixels and percentage) them. I'm working with dialog and imagemagick. My problem is that I can't find any command/code to when ...
user avatar
-1 votes
1 answer
1k views

ls command in a variable to display in dialog checklist and processing of the selected option

i just started shell programming and i can't get the following problem to work. I want that all directorys, from a defined directory (e.g.. /var), are displayed in dialog checklist. I also want that ...
user avatar
  • 3
2 votes
1 answer
339 views

Filter multiple items from the output of a long running command

TLDR: How do I run handbrakecli, get progress and ETA, pipe into dialog without flickering. Details: I have a script that finds all video files in a directory and then runs handbrakecli on them ...
user avatar
0 votes
1 answer
848 views

redirect input from keypad/mouse to shell dialog curses gui

I have been trying to use the "dialog" utility to build interactive menus. All works fine if I work from a terminal; menus are displayed and I can interact from those menus using my keyboard. But now ...
user avatar
1 vote
1 answer
174 views

How can a script start when I am pressing Alt+Tab keys keeping "Window Switcher Dialog" running?

I would like to know the way that when I press "Alt+Tab" keys in order to change the active window to other window, the system would recognize it and it would move the cursor to one specific place of ...
user avatar
  • 51
0 votes
1 answer
342 views

How to run a command once the first time the OS is used?

I am customizing OS and want to display a dialogue describing the ad hoc OS the first time the user is entering the OS. The command is saved in a script. What is the best strategy to execute a script ...
user avatar
  • 4,326
0 votes
1 answer
118 views

Respond to interactive spawned child process

There's a command from Amazon Web Services called eb init that allows you to initiate the current working directory as a elasticbeanstalk app. This command is interactive, meaning eb init will ...
user avatar