Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357236

Colours are not shown properly on Windows Terminal when running jshell

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • generic
    • windows

      ADDITIONAL SYSTEM INFORMATION :
      Windows 11 Pro,
      java 24 2025-03-18
      Java(TM) SE Runtime Environment (build 24+36-3646)
      Java HotSpot(TM) 64-Bit Server VM (build 24+36-3646, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      The keywords are no longer displayed in bold, rather syntax highlighting now changes the background color, making a very strange when using the repl.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Start jshell inside Windows Terminal.
      Write any kind of Java code where keywords are present.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The keywords are shown in bold/strong font, the background is unchanged.
      ACTUAL -
      The background colour gets reversed from black to light gray, leaving a strange background rectangle behind each keyword.

      ---------- BEGIN SOURCE ----------
      jshell> var x = 42;
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: