From a26ffe3ebe4c207cf8e790b6b155494840b0f3da Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 4 Jun 2020 11:52:24 -0400 Subject: [PATCH] Sequences use CURRENT background colour again. The previous commit, through oversignt, made it so that escape codes that erase characters used the default background colour instead of the current background colour, which is incorrect behaviour. This has now been fixed. --- app/src/main/java/com/hxxr/rfterm/xtermView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/hxxr/rfterm/xtermView.java b/app/src/main/java/com/hxxr/rfterm/xtermView.java index 737b96d..cacffee 100644 --- a/app/src/main/java/com/hxxr/rfterm/xtermView.java +++ b/app/src/main/java/com/hxxr/rfterm/xtermView.java @@ -427,7 +427,7 @@ else if (e.size()>1) { isEscaping = false; Log.d("ViewRoot_ESCAPECODE", String.valueOf(charLToA(e))); - Paint background = reverseVideo ? fpaint : dpaint; + Paint background = reverseVideo ? fpaint : bpaint; // Determine the type of CSI code by looking at the last character switch (e.get(e.size() - 1)) {