version 1.10, 2019/05/15 18:18:08 |
version 1.11, 2019/05/15 19:06:01 |
|
|
/* Delete backspace and preceding char. */ |
/* Delete backspace and preceding char. */ |
do { |
do { |
dst--; |
dst--; |
} while (dst > odst && |
} while (dst > odst && IS_UTF8_TRAIL(*dst)); |
!IS_ASCII_OCTET(*dst) && !IS_UTF8_LEAD(*dst)); |
|
} else if ((ops & CVT_ANSI) && ch == ESC) { |
} else if ((ops & CVT_ANSI) && ch == ESC) { |
/* Skip to end of ANSI escape sequence. */ |
/* Skip to end of ANSI escape sequence. */ |
src++; /* skip the CSI start char */ |
src++; /* skip the CSI start char */ |