]> granicus.if.org Git - procps-ng/commit
watch: interpret esc[m sequence
authorCraig Small <csmall@enc.com.au>
Wed, 18 Nov 2015 11:48:09 +0000 (22:48 +1100)
committerCraig Small <csmall@enc.com.au>
Wed, 18 Nov 2015 11:48:09 +0000 (22:48 +1100)
commit6fcb690099bd681930946492e8a93c61e82249d8
tree1bc053e4f0c5adb3f5d92bad2537bed969751745
parent94e4749be3ea218a57c22034dd45b80325c35586
watch: interpret esc[m sequence

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