special case count_digits for zero

even zero needs one digit to be printed

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
prefer the already linked curses lib for termcap

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>