Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running "dialog" on an install CD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Tue Dec 02, 2008 4:21 pm    Post subject: Running "dialog" on an install CD Reply with quote

I'm running the x86 2008.0 minimal install cd. When I do

Code:

dialog --infobox Hello 3 40; sleep 10


an infobox appears, but the bottom background line is black instead of blue and a small cursor is blinking at the bottom left. How do I keep the background intact (bottom line blue)?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Dec 03, 2008 1:19 am    Post subject: Reply with quote

Quote:
the bottom background line is black instead of blue and a small cursor is blinking at the bottom left.

Not a bottom background line-- your program has run and 'slept' for ten seconds and then ended, reverting to the terminal command line.
Quote:
How do I keep the background intact (bottom line blue)?

Don't think you can with an infobox unless you set sleep to infinity (not a good idea); there are other forms that may be what you want.
Running the example code at http://www.linuxjournal.com/article/2807 , a dialog tutorial, will give a quick show of assorted forms.
Back to top
View user's profile Send private message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Wed Dec 03, 2008 10:10 am    Post subject: Reply with quote

Hm. It's ugly when I use it in a script, followed by something that takes time. Fortunately, the longest part of the script is handled by a gauge dialog, which doesn't exit until 100% is reached.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Dec 03, 2008 4:31 pm    Post subject: Reply with quote

This may give the effect you want:
Code:
dialog --infobox Hello 3 40; sleep 10;exit;

works neatly in GUI
or
Code:
dialog --infobox Hello 3 40; sleep 10;dialog --clear;

puts message up for 10 secs, then returns to clean terminal command line
Back to top
View user's profile Send private message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Sun Dec 07, 2008 1:29 pm    Post subject: Reply with quote

The black lines do not appear if I run it in, say gnome-terminal or if I'm using a framebuffer console. I don't know if I'm using the right terminology but in 80x25 mode I get black lines, in more fancy consoles I don't).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum