From b75bcc262766a7530b5d1fdec605ad94e2934750 Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 8 May 2015 16:30:07 +0000 Subject: [PATCH] Avoid scattering octal escapes all over the place, use the definitions given at the top of the file. No functional change. From bapt at FreeBSD. --- usr.bin/col/col.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index efceb690cba..3f50cdbe735 100644 --- a/usr.bin/col/col.c +++ b/usr.bin/col/col.c @@ -1,4 +1,4 @@ -/* $OpenBSD: col.c,v 1.15 2015/05/08 12:30:27 schwarze Exp $ */ +/* $OpenBSD: col.c,v 1.16 2015/05/08 16:30:07 schwarze Exp $ */ /* $NetBSD: col.c,v 1.7 1995/09/02 05:48:50 jtc Exp $ */ /*- @@ -295,7 +295,7 @@ main(int argc, char *argv[]) /* make sure we leave things in a sane state */ if (last_set != CS_NORMAL) - PUTC('\017'); + PUTC(SI); /* flush out the last few blank lines */ if (max_line > this_line) @@ -350,7 +350,7 @@ flush_blanks(void) for (i = nb; --i >= 0;) PUTC('\n'); if (half) { - PUTC('\033'); + PUTC(ESC); PUTC('\011'); if (!nb) PUTC('\r'); @@ -443,10 +443,10 @@ flush_line(LINE *l) if (c->c_set != last_set) { switch (c->c_set) { case CS_NORMAL: - PUTC('\017'); + PUTC(SI); break; case CS_ALTERNATE: - PUTC('\016'); + PUTC(SO); } last_set = c->c_set; } -- 2.20.1