retain background attribute in putmsg()