• Craig Small's avatar
    watch: interpret esc[m sequence · 6fcb6900
    Craig Small authored
    Commit 99fa7f removed watch crashing from having the null ANSI
    sequence. However it just ignored that sequence instead of fixing it.
    This change correctly checks buf (not undefined endptr) and sends
    the reset attribute if found.
    Closes: #12
watch.c 20.3 KB