-/* $OpenBSD: b.c,v 1.19 2017/10/09 14:51:31 deraadt Exp $ */
+/* $OpenBSD: b.c,v 1.20 2018/01/24 16:28:25 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
if ((c = *p++) == 't')
c = '\t';
+ else if (c == 'v')
+ c = '\v';
else if (c == 'n')
c = '\n';
else if (c == 'f')
c = '\r';
else if (c == 'b')
c = '\b';
+ else if (c == 'a')
+ c = '\007';
else if (c == '\\')
c = '\\';
else if (c == 'x') { /* hexadecimal goo follows */
-/* $OpenBSD: tran.c,v 1.16 2017/10/09 14:51:31 deraadt Exp $ */
+/* $OpenBSD: tran.c,v 1.17 2018/01/24 16:28:25 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
case '\\': *bp++ = '\\'; break;
case 'n': *bp++ = '\n'; break;
case 't': *bp++ = '\t'; break;
+ case 'v': *bp++ = '\v'; break;
case 'b': *bp++ = '\b'; break;
case 'f': *bp++ = '\f'; break;
case 'r': *bp++ = '\r'; break;
+ case 'a': *bp++ = '\007'; break;
default:
if (!isdigit(c)) {
*bp++ = c;