Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dialog]

The tag has no usage guidance.

1
vote
0answers
28 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
68 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 \ ...
0
votes
1answer
71 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
50 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
175 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
151 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
472 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. ...
0
votes
2answers
175 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
130 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 ...
0
votes
0answers
17 views

GNOME Ubuntu - select file save prompt via keyboard

Is there a way to select a certain option in the GNOME desktop GUI prompts (as pictured below). I'm using Ubuntu 17.10 and there doesn't seem to be a clear way of selecting one of the options with the ...
1
vote
1answer
219 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
506 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
453 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
169 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
500 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
133 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 ...
3
votes
1answer
4k 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
84 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
63 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
568 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
184 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
317 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
66 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
150 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
74 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 ...
3
votes
1answer
127 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
103 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
428 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
491 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
183 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
703 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
595 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
976 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
120 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
214 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
4k 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
3k 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
771 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
1answer
750 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
543 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 ...
4
votes
2answers
837 views

Bash script function that changes the value of a variable

I'd like to make a function for a BASH script that changes the value of one of its arguments, that is a variable. The function that I did is: chck_rgx () { # Checks that the given name for a user/...
2
votes
1answer
615 views

How do I change the keybindings for the dialog command

According to the documentation here: You can override or add to key bindings in dialog by adding to the configuration file. Dialog's bindkey command maps single keys to its internal coding. ...
1
vote
2answers
1k views

Whiptail/dialog input bug when executed from rc.local

I need to start a Bash script containing calls to dialog at Debian boot time. This is how I've been able to do it: Unset default root password Set --autologin option to tty1 in initrd (1:2345:respawn:...
0
votes
1answer
1k views

Dialog radiolist using dynamicaly defined array of choices

Following my previous question, I have write the following MWE to create a simple file selector by date filesArr=( $(ls -1rt ??????????_?) ) nfiles=${#filesArr[@]} iLastFile=$[nfiles-1] choiceArr=( ) ...
2
votes
2answers
6k views

Variables in dialog radiolist

I have the following dialog radiolist, which works fine. #!/bin/bash ch1a="1" ch1b="Fri, 20/3/15" ch2a="2" ch2b="Sun, 21/6/15" ch1="\"$ch1a\" \"$ch1b\"" dialog --title "Equinoxes and Solistices" \ ...
3
votes
1answer
1k views

Why doesn't `dialog` display the menu (but accepts acceptance) when started through a command substitution expression?

I want to, from a bash shell script, present the user with a menu of choices to pick from. The selection should then be stored in an environment variable for further use later. If I run from the ...
2
votes
0answers
69 views

How to run the dialog command with proccess? [duplicate]

NOTE: Please look at my code, it's a Bash script. I want to display both dialogs on the screen at the same time, one dialog displays this: tail –f from - /var/log/proccess1.log and the second ...
3
votes
3answers
3k views

how to run the dialog command with proccess

Please look on my code – ( bash script ) I want to display both dialogs on the screen on the same time, one dialog display the: tail –f from - /var/log/proccess1.log , and the second dialog ...
2
votes
1answer
339 views

tput command + how to locate dialog window on the top of the screen

Is it possible to use the tput command in order to place the dialog window on the top of the screen ? For example The following dialog command display the log is running by tail command dialog -...