diff --git a/app/src/main/java/com/termux/view/TerminalRenderer.java b/app/src/main/java/com/termux/view/TerminalRenderer.java index 0b8903eb98..3f8eca0ace 100644 --- a/app/src/main/java/com/termux/view/TerminalRenderer.java +++ b/app/src/main/java/com/termux/view/TerminalRenderer.java @@ -205,7 +205,10 @@ private void drawTextRun(Canvas canvas, char[] text, int[] palette, float y, int final boolean strikeThrough = (effect & TextStyle.CHARACTER_ATTRIBUTE_STRIKETHROUGH) != 0; final boolean dim = (effect & TextStyle.CHARACTER_ATTRIBUTE_DIM) != 0; - int foreColorARGB = palette[foreColor]; + // Let bold have bright colors if applicable (one of the first 8): + final int actualForeColor = foreColor + (bold && foreColor < 8 ? 8 : 0); + + int foreColorARGB = palette[actualForeColor]; if (dim) { int red = (0xFF & (foreColorARGB >> 16)); int green = (0xFF & (foreColorARGB >> 8));