qMsg is a simple replacement for xmessage using QT3.
The project shows a QMessageBox from QT3 widgets library. It's possible to customize the message box using the command line.
Usage:
qmsg [options] [message|-]
where options are:
-t < title > title of the messagebox
-f < file > Load file as message. Can be plain text or html
If you specify the message text on command line also, this last is show
-i < icon > One of: noicon, info, warning, critical
-1 < button >
-2 < button >
-3 < button >
Set the three buttons of the message box. 'button' can be one of: ok, cancel, yes, no, abort, retry, ignore, nobutton
-d < num > Default button [0-3] (def: 1)
-e < num > Escape button [0-3] (def: 0)
If the message is '-' will be used the standard in to read the message, until EOF is found.
Requirements:
· QT3.x
What's New in This Release:
· Button numers and return value starts from 0, to allow commands like qmsg -0 yes -1 no "Erase all?" && rm -fR
Product's homepage