Skip to content

Commit

Permalink
vte>=0.57.3 supports BiDi (fix #464)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Oct 20, 2023
1 parent 2405d5a commit 70e035f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Main.awk
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ function initMisc( command, group, temp) {
if (Option["no-bidi"] || BiDiTerm == "mlterm")
# mlterm implements its own padding
BiDi = BiDiNoPad = NULLSTR
else if (!Option["force-bidi"] && BiDiTerm == "konsole") {
# konsole implements no padding; we should handle this
else if (!Option["force-bidi"] && (BiDiTerm == "vte" || BiDiTerm == "konsole")) {
# vte & konsole implement no padding; we should handle this
BiDiNoPad = NULLSTR
BiDi = "sed \"s/'/\\\\\\'/\" | xargs -0 printf '%%%ss'"
}
Expand Down
3 changes: 3 additions & 0 deletions include/Utils.awk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function initBiDiTerm() {
BiDiTerm = "mlterm"
else if (ENVIRON["KONSOLE_VERSION"])
BiDiTerm = "konsole"
else if (ENVIRON["VTE_VERSION"])
if (int(ENVIRON["VTE_VERSION"]) >= 5703)
BiDiTerm = "vte"
}

# Detect external bidirectional algorithm utility (fribidi);
Expand Down

0 comments on commit 70e035f

Please sign in to comment.