This function will spawn a computer notification from Mudlet - useful if you're not looking at it but want to be notified of something imporant happening.
It's for Ubuntu 9.04 only right now though - if you know the OS command for the standard linux one / mac / windows, lemme know and I'll add it in.
function notify (...)
os.execute([[terminal-notifier -title "Mudlet" -message "]] .. ... .. [["]])
end
NOTE: Did not work for me with manual install. I had to install it via gem (sudo gem install terminal-notifier). See under "Download" in the readme here: https://github.com/alloy/terminal-notifier
Trawling through the old posts found this but found that although I had the DBUS infrastructure in place on my Debian 7.3 (Wheezy) I did not have the notify-send command - turned out it was in libnotify-bin package - if that helps anyone else and at version 0.7.5 there are at least the following options that can be used...
You will need to quote or double-quote both the "short?" summary line and the main message text taking care with any character that can invoke extra shell actions (e.g. '!' which bash shells used for history expansion needs to be escaped with a '\' to prevent that if in a double-quoted text).