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

Table does not support TrueColor #254

Open
callenAUS opened this issue Nov 4, 2024 · 0 comments
Open

Table does not support TrueColor #254

callenAUS opened this issue Nov 4, 2024 · 0 comments

Comments

@callenAUS
Copy link

terminal.table does not support TrueColor hex codes in it's markup.

image

import terminalKit from "terminal-kit";

const term = terminalKit.terminal;

for(let i=0;i<256;i+=50){
	for(let o=0;o<256;o+=50){
		for(let p=0;p<256;p+=50){
			term.colorRgb(i,o,p,"#");
		}
	}
	term("\n");
}
term("^[#ffe300]lantern^:, ");
term("^[#ff8e3e]forge^:, ");
term("^[#d7dd49]edge^:, ");
term("^[#beeeff]winter^:, ");
term("^[#f97a89]heart^:, ");
term("^[#fe6150]grail^:, ");
term("^[#f2e9c2]moth^:, ");
term("^[#b54efc]knock^:, ");
term("^[#2c68e1]sky^:, ");
term("^[#ccbcd6]moon^:, ");
term("^[#20a360]nectar^:, ");
term("^[#cb9f4e]scale^:, ");
term("^[#f163ff]rose^:\n");

term("^[red]red^:, ");
term("^[blue]blue^:, ");
term("^[yellow]yellow^:, ");
term("^[green]green^:\n");

term.table([
	["^[#ffe300]lantern^:","lantern"],
	["^[#ff8e3e]forge^:","forge"],
	["^[#d7dd49]edge^:","edge"],
	["^[#beeeff]winter^:","winter"],
	["^[#f97a89]heart^:","heart"],
	["^[#fe6150]grail^:","grail"],
	["^[#f2e9c2]moth^:","moth"],
	["^[#b54efc]knock^:","knock"],
	["^[#2c68e1]sky^:","sky"],
	["^[#ccbcd6]moon^:","moon"],
	["^[#20a360]nectar^:","nectar"],
	["^[#cb9f4e]scale^:","scale"],
	["^[#f163ff]rose^:","rose"],
	["^[red]red^:","red"],
	["^[blue]blue^:","blue"],
	["^[yellow]yellow^:","yellow"],
	["^[green]green^:","green"],
],{contentHasMarkup: true})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant