Scripting with kdialog has been discussed here a few times. Recently I stumbled on the fact that kdialog uses a Qt widget that can do some html. For example, I had a message that mushed version strings together that was hard to read, so
Code:
#!/bin/bash # vershtml=' <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>version checks</title> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } th,td { padding: 10px; } </style> </head> <body> <table> <tr> <td>firefox</td> <td>ffcur</td> <td>ffnew</td> </tr> <tr> <td>thunderbird</td> <td>tbcur</td> <td>tbnew</td> </tr> </table> </body></html> ' # extract versions, substitute them in $vershtml kdialog --title "versions check" --error "$vershtml" &