Add support for back tab (CSI CBT), and forward tab (CSI CHT) too.
Resolves #539.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user