Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
unable to set color in blessed terminal cli

I was trying to set colour for my table for building a node-cli-terminal using blessed

function createListTable(alignment, padding, isInteractive = false) {
  return {
    parent: screen,
    keys: true,
    align: alignment,
    selectedFg: "white",
    selectedBg: "blue",
    interactive: isInteractive, // Makes the list table scrollable
    padding: padding,
    width: '80%',
    height: '30%',
    style: {
         fg: 'cyan',
         border: {
         fg: 'cyan'
       },
       cell: {
         selected: {
           fg: "black",
           bg: "light-yellow"
         }
      },
      header: {
        fg: "gray",
        bold: true
      }
    },
  };
}

When i am making new instance of my table i am unable to set the color for cell.

data[1][0] = '{red-fg}' + data1[1][0] + '{/red-fg}';
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The solution is simple just add in createListTable

tag: true 
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!