Add support for back tab (CSI CBT), and forward tab (CSI CHT) too.

Resolves #539.
This commit is contained in:
John Hood
2015-12-06 22:32:35 -05:00
parent 8609f88207
commit 1d71895ff4
5 changed files with 53 additions and 14 deletions
+16 -4
View File
@@ -27,17 +27,29 @@ fi
baseline()
{
printf 'hello, wurld\033[Zo\n'
printf 'hello, wurld\033[2Zo\n'
printf 'hello, wurld\033[99Z9\n'
printf 'hello, wurld\033[It\n'
printf '\033[99I#\n'
}
post()
{
if grep -q 'hello, world' $(basename $0).d/baseline.capture; then
exit 0
fi
# Basic previously-failing case.
if grep -q 'hello, wurldo' $(basename $0).d/baseline.capture; then
exit 1
fi
exit 99
if ! grep -q 'hello, world' $(basename $0).d/baseline.capture; then
exit 99
fi
# New test cases for new code.
if ! grep -q 'oello, wurld' $(basename $0).d/baseline.capture ||
! grep -q '9ello, wurld' $(basename $0).d/baseline.capture ||
! grep -q 'hello, wurld t' $(basename $0).d/baseline.capture ||
! grep -E -q '^ {79}#$' $(basename $0).d/baseline.capture; then
exit 1
fi
exit 0
}
case $1 in