Monday, November 14, 2016

Ubuntu: Dialog: Installation and Hello World


$ sudo apt-get install dialog


[sudo] password for USERNAME:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 215 kB of archives.
After this operation, 1,138 kB of additional disk space will be used.
Get:1 yakkety/universe amd64 dialog amd64 1.3-20160424-1 [215 kB]
Fetched 215 kB in 0s (1,258 kB/s)
Selecting previously unselected package dialog.
(Reading database ... 88450 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20160424-1_amd64.deb ...
Unpacking dialog (1.3-20160424-1) ...
Setting up dialog (1.3-20160424-1) ...
Processing triggers for man-db (2.7.5-1) ...


$ dialog --title "Hello" --msgbox 'Hello World!' 6 20

Graphical output:

Bash dialog Hello World!