remove trailing \0 in strings
adjust style of hint
simplify command-reading process

There must be no \r (Enter) character after each command.
Remove redundant global cmd_count
adjust coding style of check_keyword
adjust coding style for show_echo
adjust coding style for show_cmd_info

Conflicts:
	kernel.c
adjust coding style of write_blank