match: Use array storing bonus for match of char
Improve scoring
Move scoring magic numbers into macros
Lesser penalty for leading and trailing gaps
Use SCORE_MATCH_SLASH for first character
Split tty functions into tty.c
Define number of lines as a macro
Fix possible overflow on long search string
Only M[0][0] should default to 0
Extract ANSI CSI SGR calls into tty.c
Defaine ANSI color values