Add support for back tab (CSI CBT), and forward tab (CSI CHT) too.
Resolves #539.
This commit is contained in:
@@ -33,8 +33,7 @@ check_PROGRAMS = ocb-aes encrypt-decrypt base64
|
||||
TESTS = ocb-aes encrypt-decrypt base64 $(displaytests)
|
||||
XFAIL_TESTS = \
|
||||
e2e-failure.test \
|
||||
emulation-attributes-256color8.test \
|
||||
emulation-back-tab.test
|
||||
emulation-attributes-256color8.test
|
||||
|
||||
base64_vector.cc: $(srcdir)/genbase64.pl
|
||||
$(AM_V_GEN)echo '#include "base64_vector.h"' > base64_vector.cc || rm base64_vector.cc
|
||||
|
||||
@@ -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