How to use the blessed.table function in blessed

To help you get started, we’ve selected a few blessed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github embark-framework / embark / lib / dashboard / monitor.js View on Github external
width: "50%",
      height: "55%",
      left: "50%",
      top: "42%",
      border: {
        type: "line"
      },
      style: {
        fg: -1,
        border: {
          fg: this.color
        }
      }
    });

    this.assetTable = blessed.table({
      parent: this.assets,
      height: "100%",
      width: "100%-5",
      align: "left",
      pad: 1,
      scrollable: true,
      alwaysScroll: true,
      scrollbar: {
        ch: " ",
        inverse: true
      },
      keys: false,
      vi: false,
      mouse: true,
      data: [["Name", "Size"]]
    });
github mkaminsky11 / imgurize / lib / imgurize.js View on Github external
screen.key('h', function(ch, key){
  post_box.setContent("");
  table = blessed.table({
    parent: post_box,
    border: 'line',
    align: 'center',
    tags: true,
    style: {
      border: {
        fg: 'white'
      },
      header: {
        fg: 'blue',
        bold: true
      },
      cell: {
        fg: 'magenta'
      }
    }
github bmino / binance-triangle-arbitrage / src / main / HUD.js View on Github external
displayArbs(arbs) {
        HUD.initScreen();
        if (!HUD.objects.arbTable) {
            HUD.objects.arbTable = blessed.table({
                top: '0',
                left: 'center',
                width: '50%',
                height: '50%',
                border: {
                    type: 'line'
                },
                style: {
                    header: {
                        fg: 'blue',
                        bold: true
                    }
                }
            });

            HUD.screen.append(HUD.objects.arbTable);
github Tibing / platform-terminal / projects / platform-terminal / src / lib / adapters / table.ts View on Github external
export function tableAdapter(options?: Widgets.TableOptions) {
  return blessed.table({ ...options, ...defaultOptions });
}
github xxhomey19 / nba-go / src / utils / blessed.js View on Github external
top: 0,
    left: 0,
    width: '100%',
    height: '100%',
    padding: 0,
    style: {
      fg: 'black',
      bg: 'black',
      border: {
        fg: '#f0f0f0',
        bg: 'black',
      },
    },
  });

  const scoreboardTable = blessed.table({
    top: 5,
    left: 'center',
    width: '33%',
    height: 8,
    tags: true,
    border: {
      type: 'line',
    },
    style: {
      header: {
        fg: 'white',
      },
      cell: {
        fg: 'white',
      },
    },
github jwu910 / check-it-out / src / utils / interface.js View on Github external
export const helpDialogue = () => {
  const helpDialogue = blessed.table({
    align: 'left',
    border: { type: 'line' },
    data: help.helpText(),
    height: 'shrink',
    hidden: true,
    noCellBorders: true,
    padding: 1,
    right: 0,
    style: {
      border: { fg: themeColor },
    },
    bottom: 0,
    width: 'shrink',
  });

  return helpDialogue;
github gridcontrol / gridcontrol / subprojects / scaleway / window-mode.js View on Github external
height : '100%',
      width: '80%+1',
      border: 'line',
      label : chalk.bold(' MultiSSH ' + pkg.version) + ': SSH command result ',
      top: 0,
      left: 0,
      padding : 2,
      style : {
        border: {
          fg: 'cyan',
          bold : true
        }
      }
    });

    var text = blessed.table({
      parent: screen,
      keys: true,
      label : chalk.bold(' Helper '),
      width: '20%',
      border: 'line',
      bottom: 0,
      right: 0,
      style: {
        fg: 'white',
        bg: 'default',
        border: {
          fg: 'cyan',
          bold : true
        },
        selected: {
        }
github embark-framework / embark / lib / dashboard / monitor.js View on Github external
width: "75%",
      height: "42%",
      left: "0%",
      top: "0",
      border: {
        type: "line"
      },
      style: {
        fg: -1,
        border: {
          fg: this.color
        }
      }
    });

    this.moduleTable = blessed.table({
      parent: this.modules,
      height: "100%",
      width: "100%-5",
      align: "left",
      pad: 1,
      margin: "auto",
      shrink: true,
      scrollable: true,
      alwaysScroll: true,
      scrollbar: {
        ch: " ",
        inverse: true
      },
      keys: false,
      vi: false,
      mouse: true,
github Skalar / ddes / packages / @ddes / store-transformations / lib / TransformerGui.ts View on Github external
padding: {bottom: 1},
      })
      .append(spinner)

    this.intervals.push((setInterval(() => {
      spinner.setContent(
        chalk.yellow.bold(this.spinnerAnimationFrames[spinnerFrameIndex])
      )
      this.screen.render()
      spinnerFrameIndex++
      if (spinnerFrameIndex >= this.spinnerAnimationFrames.length) {
        spinnerFrameIndex = 0
      }
    }, 120) as any) as NodeJS.Timer)

    this.table = blessed.table({
      parent: centeredContainer,
      border: 'line',
      align: 'left',
      width: 75,
      style: {
        border: {
          fg: '#333',
        },
      },
      data: this.getTableData(),
    })

    this.intervals.push(
      setInterval(() => {
        this.table.setData(this.getTableData())
        this.progressBar.setProgress(
github xxhomey19 / nba-go / src / utils / blessed.js View on Github external
label: ' Play By Play ',
    border: {
      type: 'line',
    },
    scrollbar: {
      ch: ' ',
      track: {
        bg: '#0253a4',
      },
      style: {
        inverse: true,
      },
    },
  });

  const boxscoreTable = blessed.table({
    parent: screen,
    top: 15,
    left: '70%',
    width: '30%-3',
    height: '100%-15',
    tags: true,
    pad: 0,
    label: ' Box Score ',
    border: {
      type: 'line',
    },
  });

  screen.append(baseBox);
  screen.append(seasonText);
  screen.append(timeText);