Use defines to improve clarity
MFC after: 2 weeks
This commit is contained in:
parent
f6240da93c
commit
a9da03ef30
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282309
@ -321,7 +321,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
/* make sure we leave things in a sane state */
|
/* make sure we leave things in a sane state */
|
||||||
if (last_set != CS_NORMAL)
|
if (last_set != CS_NORMAL)
|
||||||
PUTC('\017');
|
PUTC(SI);
|
||||||
|
|
||||||
/* flush out the last few blank lines */
|
/* flush out the last few blank lines */
|
||||||
nblank_lines = max_line - this_line;
|
nblank_lines = max_line - this_line;
|
||||||
@ -377,8 +377,8 @@ flush_blanks(void)
|
|||||||
for (i = nb; --i >= 0;)
|
for (i = nb; --i >= 0;)
|
||||||
PUTC('\n');
|
PUTC('\n');
|
||||||
if (half) {
|
if (half) {
|
||||||
PUTC('\033');
|
PUTC(ESC);
|
||||||
PUTC('9');
|
PUTC(FHLF);
|
||||||
if (!nb)
|
if (!nb)
|
||||||
PUTC('\r');
|
PUTC('\r');
|
||||||
}
|
}
|
||||||
@ -480,10 +480,10 @@ flush_line(LINE *l)
|
|||||||
if (c->c_set != last_set) {
|
if (c->c_set != last_set) {
|
||||||
switch (c->c_set) {
|
switch (c->c_set) {
|
||||||
case CS_NORMAL:
|
case CS_NORMAL:
|
||||||
PUTC('\017');
|
PUTC(SI);
|
||||||
break;
|
break;
|
||||||
case CS_ALTERNATE:
|
case CS_ALTERNATE:
|
||||||
PUTC('\016');
|
PUTC(SO);
|
||||||
}
|
}
|
||||||
last_set = c->c_set;
|
last_set = c->c_set;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user