seq.c: replace non-standard `\e` with standard compliant `\x1B`
This commit is contained in:
parent
b48597d41d
commit
d7beb5fa1a
|
@ -31,7 +31,7 @@
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__COPYRIGHT("@(#) Copyright (c) 2005\
|
__COPYRIGHT("@(#) Copyright (c) 2005\
|
||||||
The NetBSD Foundation, Inc. All rights reserved.");
|
The NetBSD Foundation, Inc. All rights reserved.");
|
||||||
__RCSID("$NetBSD: seq.c,v 1.11 2018/12/17 20:10:51 christos Exp $");
|
__RCSID("$NetBSD: seq.c,v 1.12 2021/03/20 22:10:17 cheusov Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -308,7 +308,7 @@ unescape(char *orig)
|
||||||
*orig = '\b';
|
*orig = '\b';
|
||||||
continue;
|
continue;
|
||||||
case 'e': /* escape */
|
case 'e': /* escape */
|
||||||
*orig = '\e';
|
*orig = '\x1B';
|
||||||
continue;
|
continue;
|
||||||
case 'f': /* formfeed */
|
case 'f': /* formfeed */
|
||||||
*orig = '\f';
|
*orig = '\f';
|
||||||
|
|
Loading…
Reference in New Issue