A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [dialog]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
40 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
1answer
56 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
1answer
49 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
1answer
46 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
1answer
53 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
3answers
77 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
2answers
52 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 ...
1
vote
0answers
25 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
1answer
34 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
1answer
52 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
0answers
50 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,...
2
votes
1answer
226 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
1answer
163 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
1answer
104 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
1answer
252 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
1answer
269 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 ...
2
votes
1answer
799 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
2answers
358 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
1answer
249 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
1answer
315 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
1answer
834 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
1answer
757 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
1answer
302 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
1answer
735 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
2answers
274 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 ...
4
votes
1answer
8k 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 ...
0
votes
1answer
97 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 ...
2
votes
1answer
65 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 ...
-1
votes
1answer
709 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 ...
2
votes
1answer
218 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 ...
0
votes
1answer
411 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 ...
1
vote
1answer
73 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 ...
0
votes
1answer
196 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 ...
0
votes
1answer
87 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 ...
2
votes
1answer
152 views

Wordsplitting occurring in quoted variable

I'm trying to create a dialog menu based on the results of the lsblk command. My goal is to read the first word as the menu item and the remaining words as the menu item description. For example: ...
1
vote
1answer
109 views

What package is this searchable file dialog a part of?

I run a simple, basic system: arch linux with the i3 window manager. But my file save/open dialog is certainly quite fancy: see this screenshot. It dynamically updates and indexes the files as I start ...
0
votes
1answer
539 views

Edit file with vim using Dialog

I am trying to build a terminal based GUI for a tool. The following code invokes something like this while true do CHOICE=$(dialog --keep-window --clear --no-shadow \ --backtitle "...
1
vote
1answer
555 views

cat specific line range from /etc/hosts to dialog box

I like to list, for example all Ethernet switches from /etc/hosts and show them inside dialog box. After that I would like to connect selected switch from the list. The list should be listed between ...
2
votes
1answer
196 views

Using open file dialog within gEdit using keyboard only

I use the default gEdit on Cinnamon on Linux Mint, but I find when opening files from within it, I cannot navigate the open file dialog solely using the keyboard. I hasn't been intuitive how I use tab ...
2
votes
1answer
803 views

Xdialog - Capture user and password for a shellscript

I'm trying to create a simple "User and Password" GUI input for a shellscript, with the --2inputbox parameter for the Xdialog command: While following the documentation seems to be easy, it does not ...
1
vote
1answer
700 views

dialog menu to display files, select one of them and then able to delete it

I want to be able to display files under a given directory, then select one of the files and be able to delete it. Here's what I've found so far. Can anybody help? let i=0 # define counting variable ...
0
votes
1answer
1k views

yad, how to create a simple question dialog?

I know yad can do much more than zenity, but it also misses quickies like --question. What is the simplest way to mimic that zenity option on yad? Obs.: mimic quickies for other possibly missing ...
1
vote
1answer
131 views

debian 8 shutdown dialog change hibernate button method

Hello I have problem with hibernate on my HP635 notebook. Having Debian jessie install with minimal MATE desktop enviroment I give the hibernation to life (despite of special setup with mounted ...
0
votes
1answer
262 views

Dialog filtered menu

I am currently making a script to manage themes in ArchLinux, basically it save arborescence of config files in a folder named with a prefix "gt-" for global-theme. All themes are saved in at $GT_DIR ...
2
votes
1answer
5k views

Array into whiptail menu - BASH

I would like to show user friendly whiptail menu. My goal in whiptail is this: Choice1 Choice2 Choice3 Choice4 I have array consist of: Choice1 Choice2 Choice3 Choice4 I run array through loop ...
1
vote
1answer
1k views

How to navigate in dialog's file and directory selectors?

I wrote some shell scripts using dialog prompting the user for directories and files. However, I don't know how to change the directory. When I press Space in a dselect, the directory gets added to ...
0
votes
1answer
6k views

clear command in console dialog

My bash script contains the clear command, that when executed through dialog command will result with strange letters. How can I still use clear command without seeing this output in the dialog? This ...
0
votes
2answers
798 views

Eclipse Mars + Fedora 20 + KDE = black-on-black tooltips

So, I'm using a system with Fedora 20 installed, running a KDE 4.14.7 desktop. (I don't have root access so please no complaints about why I don't just upgrade my distro.) I have just installed ...
1
vote
2answers
887 views

curl progress in dialog

how can i properly display the curl progress in the dialog window? curl http://mysite.corp/image/root_21.tar.bz2 | tar -C /mnt/dest/ -jxf - i tried this command but as you can see it does not ...
1
vote
1answer
606 views

Bash script with (X)dialog asking for root password (kdesu substitute)

I'm using (X)dialog for a script that a normal runs, but it needs root privileges for some commands. The script runs from a .desktop file, thus the user sees no terminal. For example here #!/bin/bash ...