Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ISO-8613-3 "true colors" with 256-color palette #114

Closed
remkop opened this issue Apr 30, 2017 · 1 comment
Closed

Replace ISO-8613-3 "true colors" with 256-color palette #114

remkop opened this issue Apr 30, 2017 · 1 comment

Comments

@remkop
Copy link
Owner

remkop commented Apr 30, 2017

Verify both modes on Cygwin, Babun and Linux

@remkop remkop added this to the 0.9.4 milestone Apr 30, 2017
@remkop
Copy link
Owner Author

remkop commented May 2, 2017

public class Colors {
    /** The Control Sequence Introducer (CSI) escape sequence {@value}. */
    static String CSI = "\u001B[";

    public static void main(String[] args) {
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 6; j++) {
                for (int k = 0; k < 6; k++) {
                    int col = 16 + 36 * i + 6 * j + k;
                    System.out.print(CSI + 38 + ";5;" + col + "m" + col + " " + CSI + 0 + "m");
                }
                System.out.println();
            }
            System.out.println();
        }
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 6; j++) {
                for (int k = 0; k < 6; k++) {
                    int col = 16 + 36 * i + 6 * j + k;
                    System.out.print(CSI + 48 + ";5;" + col + "m" + col + " " + CSI + 0 + "m");
                }
                System.out.println();
            }
            System.out.println();
        }
    }
}

@remkop remkop changed the title Consider replacing ISO-8613-3 colors with 256-color mode Replace ISO-8613-3 "true colors" with 256-color palette May 3, 2017
@remkop remkop closed this as completed in 086bafd May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant