On Thu, Oct 22, 2009 at 7:41 PM, Allan McRae <allan@archlinux.org> wrote:
Cedric Staniewski wrote:
Suggested-by: Dan McGee <dan@archlinux.org> Signed-off-by: Cedric Staniewski <cedric@gmx.ca> ---
I do not know if this patch is usefull at all, because I do not notice any change. Just grabbed this from Dan's TODO list and wanted to play a bit with tput.
It looks fine to me... I just have no idea on the advantage we are achieving with this change apart from the apparent terminal safeness. Was the old version not safe?
Dan: comments?
First comment- that TODO list is still huge, wow. :) Anyway, this seems pretty reasonable to me, but not sure it is worth it. At the least, we should capture these sequences once on script startup, and then use the global variable in each function. And does $(tput offbold) make more sense for the reset? -Dan