Skip to content

Commit

Permalink
Add "next" charset; don't display ^X for X > 128.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jan 31, 1995
1 parent 62aa7fa commit fc1e830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct charset {
{ "latin1", "8bcccbcc18b95.33b." },
{ "dos", "8bcccbcc12bc5b95.b." },
{ "koi8-r", "8bcccbcc18b95.b128." },
{ "next", "8bcccbcc18b95.bb125.bb" },
{ NULL }
};

Expand Down Expand Up @@ -278,7 +279,7 @@ prchar(c)
sprintf(buf, "%c", c);
else if (c == ESC)
sprintf(buf, "ESC");
else if (!control_char(c ^ 0100))
else if (c < 128 && !control_char(c ^ 0100))
sprintf(buf, "^%c", c ^ 0100);
else
sprintf(buf, binfmt, c);
Expand Down
4 changes: 4 additions & 0 deletions less.nro.VER
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,10 @@ latin-1 is the same as ASCII, except characters between 161 and 255 are
treated as normal characters.
.IP dos
Selects a character set appropriate for MS-DOS.
.IP koi8-r
Selects a Russian character set.
.IP next
Selects a character set appropriate for NeXT computers.
.PP
In special cases, it may be desired to tailor
.I less
Expand Down

0 comments on commit fc1e830

Please sign in to comment.