Skip to content

Commit

Permalink
* vt_parser.c: Make Pcmh and Pcss of DECDLD omittable.
Browse files Browse the repository at this point in the history
  • Loading branch information
arakiken committed Aug 13, 2024
1 parent 0c20e4e commit 2daa4e9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2024-08-13 Araki Ken <arakiken@users.sf.net>

* vt_parser.c: Make Pcmh and Pcss of DECDLD omittable.

* vtetypebuiltins.c, reaper.c: Fix errors in -Werror=incompatible-pointer-types.

2024-08-12 Araki Ken <arakiken@users.sf.net>
Expand Down
16 changes: 15 additions & 1 deletion vtemu/vt_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -6209,13 +6209,27 @@ inline static int parse_vt100_escape_sequence(
*(param++) = c; /* restore in case of restarting to parse from the begining. */
}

if (num != 8) {
if (num < 6 || 8 < num) {
if (!get_pt_in_esc_seq(&str_p, &left, 1, 0)) {
return 0;
}
} else {
char *path;

if (num < 8) {
/*
* vt220: 6 parameters
* (https://manx-docs.org/mirror/vt100.net/docs/vt220-rm/table4-9.html)
* vt510: 8 parameters
* (https://vt100.net/docs/vt510-rm/DECDLD.html)
*/
ps[7] = 0; /* Pcss (0 = 94-character set (default)) */

if (num == 6) {
ps[6] = 0; /* Pcmh (0 or omitted = 16 pixels high (default)) */
}
}

if (!increment_str(&str_p, &left)) {
return 0;
}
Expand Down

0 comments on commit 2daa4e9

Please sign in to comment.