How to use the blessed.listtable 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 node-opcua / opcua-commander / index.js View on Github external
function install_alarm_windows() {
    if (alarmBox) {
        alarmBox.show();
        return;
    }
    
    
    alarmBox = blessed.listtable({
        parent: area1,
        fg: "green",
        // label: "{bold}{cyan-fg}Alarms - Conditions {/cyan-fg}{/bold} ",
        label: "Alarms - Conditions",
        top: "top+6",
        left: "left+2",
        width: "100%-4",
        height: "100%-6",
        keys: true,
        border: "line",
        scrollbar: scrollbar,
        noCellBorders: false,
        style: _.clone(style)
    });
    alarmBox.fg = "green";
github chjj / termcoin / lib / ui.js View on Github external
return bitcoin.listReceivedByAddress(address, function(err, txs) {
          return;
        });
      }
    });
  });

  /**
   * Transactions
   */

  tabs.tx.on('focus', function() {
    tabs.tx._.list.focus();
  });

  tabs.tx._.list = blessed.listtable({
    parent: tabs.tx,
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    // border: {
    //   type: 'line',
    //   top: false,
    //   left: false,
    //   right: false,
    //   bottom: false
    // },
    keys: true,
    vi: true,
    mouse: true,
    tags: true,
github rafaelrinaldi / hn-cli / src / renderer.js View on Github external
render(data) {
    this.screen = UI.screen(screenOptions);
    this.table = UI.listtable(tableOptions);

    this.statusBarLeft = UI.box(statusBarOptions.left);
    this.statusBarRight = UI.box(statusBarOptions.right);

    this.table.focus();
    this.table.setData(data);

    this.screen.append(this.table);
    this.screen.append(this.statusBarLeft);
    this.screen.append(this.statusBarRight);
    this.screen.render();

    this.setupEvents();
    this.reportProgress();
  }
github node-opcua / opcua-commander / lib / view / view.ts View on Github external
install_monitoredItemsWindow() {

        this.monitoredItemsList = blessed.listtable({
            parent: this.area1,
            tags: true,
            top: "50%",
            left: w2 + "+1",
            width: "60%-1",
            height: "50%",
            keys: true,
            label: " Monitored Items ",
            border: "line",
            scrollbar: scrollbar,
            noCellBorders: true,
            style: _.clone(style),
            align: "left"
        });
        this.area1.append(this.monitoredItemsList);
github jwu910 / check-it-out / src / utils / interface.js View on Github external
export const branchTable = () => {
  const branchTable = blessed.listtable({
    align: 'left',
    left: 0,
    keys: true,
    right: 0,
    noCellBorders: true,
    scrollable: true,
    scrollbar: true,
    style: {
      cell: {
        selected: {
          bg: '#FFFFFF',
          fg: '#272727',
        },
      },
      header: {
        fg: themeColor,
github marcenacp / kubeasy / src / widgets / pods.js View on Github external
create() {
    this.widget = blessed.listtable({
      align: 'center',
      border: 'line',
      data: null,
      height: Math.floor(this.screen.height * 0.8),
      interactive: true,
      keys: true,
      label: '( Pods )',
      left: 0,
      mouse: true,
      parent: this.screen,
      tags: true,
      top: Math.floor(this.screen.height * 0.2),
      width: '100%',
      style: {
        border: { fg: 'blue' },
        header: {
github shobrook / BitVision / modals / help.js View on Github external
module.exports.createHelpScreen = (screen, version, callback) => {
  let helpMenuLayout = null;
  helpMenuLayout = blessed.layout({
    parent: screen,
    top: "center",
    left: "center",
    width: 80,
    height: 34,
    border: "line",
    style: { border: { fg: "blue" } }
  });

  let keybindingsTable = blessed.listtable({
    parent: helpMenuLayout,
    interactive: false,
    top: "center",
    left: "center",
    data: helpMenuData,
    border: "line",
    align: "center",
    pad: 2,
    width: 53,
    height: 9,
    style: {
      border: { fg: "bright-blue" },
      header: { fg: "bright-green", bold: true, underline: true },
      cell: { fg: "yellow" }
    }
  });
github node-opcua / opcua-commander / index.js View on Github external
function install_monitoredItemsWindow() {

    monitoredItemsList = blessed.listtable({
        parent: area1,
        tags: true,
        top: "50%",
        left: w2 + "+1",
        width: "60%-1",
        height: "50%",
        keys: true,
        label: " Monitored Items ",
        border: "line",
        scrollbar: scrollbar,
        noCellBorders: true,
        style: _.clone(style),
        align: "left"
    });

    area1.append(monitoredItemsList);
github chjj / termcoin / lib / ui.js View on Github external
});

  tabs.send._.form.key(['F', 'f'], function() {
    tabs.send._.from.focus();
    _pick(tabs.send._.from);
  });

  /**
   * Addresses
   */

  tabs.addr.on('focus', function() {
    tabs.addr._.list.focus();
  });

  tabs.addr._.list = blessed.listtable({
    parent: tabs.addr,
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    keys: true,
    vi: true,
    mouse: true,
    tags: true,
    style: {
      scrollbar: {
        inverse: true
      },
      header: {
        bold: true
      },
github harksys / npmvet / src / renderers / blessed.ts View on Github external
export const render: IRenderer = (depMap) =>
{
  const screen = blessed.screen({
    smartCSR : true,
    title    : 'NPM Vet'
  });

  /*
   * Setup the table
   */
  const table = blessed.listtable({
    parent : screen,
    name   : 'npmvet table',

    tags : true,
    vi   : false,

    left   : 0,
    border : 'line',
    align  : 'center',
    width  : '100%',
    height : '100%',

    style : {
      header : {
        bg : 'blue'
      },