In a shell script, I have a need to put up a 'pause' - wait for the user
to
click something, before proceeding. I can do:
$ xmessage "Click this window to continue..."
which works, but has two problems:
1) Both the window and the text are tiny. There are no options in
xmessage
to change this. I would like the window to be big and easily readable/visible on the desktop.
2) Being based on old Athena widgets, it is ugly.
$ xmessage "Click this window to continue..."
which works, but has two problems:
1) Both the window and the text are tiny. There are no options in xmessage to change this. I would like the window to be big and easily readable/visible on the desktop.
2) Being based on old Athena widgets, it is ugly.
On 2017-10-21, Kenny McCormack <gazelle@shell.xmission.com> wrote:
$ xmessage "Click this window to continue..."
which works, but has two problems:
1) Both the window and the text are tiny. There are no options in xmessage >> to change this. I would like the window to be big and easily
readable/visible on the desktop.
xmessage -xrm 'xmessages*font: lucidasanstypewriter-24' foo
works for me.
2) Being based on old Athena widgets, it is ugly.
can't fix that :)
If you want it to look pretty, best thing is to find a toolkit that
matches your notion of pretty, and write it in that.
I'm looking for an easy alternative. On Linux, there is zenity, which
would work, but, alas, zenity isn't available on the platform in question. I've downloaded the zenity source and tried to compile it, but the ./configure step failed with an error message about something called 'pkg_configure'. I've never heard of pkg_configure before. In any case,
it didn't look like an easy compile, so I abandoned it. If there is an
easy way to get zenity to compile (w/o pkg_configure), please advise.
xmessage -fn 5x7 "This is small print..."
In a shell script, I have a need to put up a 'pause' - wait for the user to click something, before proceeding. I can do:
$ xmessage "Click this window to continue..."
In comp.windows.x, Kenny McCormack <gazelle@shell.xmission.com> wrote:
In a shell script, I have a need to put up a 'pause' - wait for the user to >> click something, before proceeding. I can do:
$ xmessage "Click this window to continue..."
A) xterm -e whiptail --msgbox "X11? Okay" 10 40 \
--ok-button "hit enter"
B) Use Tcl to build your own fancier one.
C) Create an image with the message, use an image viewer to display
it. I like feh, but that might be a trick to compile off Linux.
gifsicle's `gifview` is easy to build.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 357 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:36:38 |
Calls: | 7,663 |
Calls today: | 2 |
Files: | 12,822 |
Messages: | 5,705,322 |