diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-01 17:33:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-01 17:33:32 +0000 |
commit | a9da03ef30ac9d682223877aba4fc9f093d575cb (patch) | |
tree | 2927f1d6fd41ee9d852b5c03462dc0a01969ed85 | |
parent | f6240da93cb925b69bad68f1d9750fecd8a4b555 (diff) | |
download | src-a9da03ef30ac9d682223877aba4fc9f093d575cb.tar.gz src-a9da03ef30ac9d682223877aba4fc9f093d575cb.zip |
Use defines to improve clarity
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=282309
-rw-r--r-- | usr.bin/col/col.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index 511188a89ffe..fa98cdbc1aab 100644 --- a/usr.bin/col/col.c +++ b/usr.bin/col/col.c @@ -321,7 +321,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 */ nblank_lines = max_line - this_line; @@ -377,8 +377,8 @@ flush_blanks(void) for (i = nb; --i >= 0;) PUTC('\n'); if (half) { - PUTC('\033'); - PUTC('9'); + PUTC(ESC); + PUTC(FHLF); if (!nb) PUTC('\r'); } @@ -480,10 +480,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; } |