Skip to content

Commit

Permalink
Merge pull request #12 from arakiken/fix_native_term_support_sixel
Browse files Browse the repository at this point in the history
Fix native_term_support_sixel to parse "\x1b[?63;4c" correctly.
  • Loading branch information
isaki68k committed Feb 2, 2020
2 parents 3b95dce + d01407c commit 5e5ea0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vala/System.OS.native.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ native_term_support_sixel()
e = strchr(p, ';');
if (e) {
*e++ = '\0';
} else {
e = strrchr(p, 'c');
if (e) {
*e = '\0';
e = NULL;
}
}

if (strcmp(p, "4") == 0) {
return 1;
}
Expand Down

0 comments on commit 5e5ea0f

Please sign in to comment.