How to use the Text function from blessed

Find comprehensive JavaScript blessed.Text code examples handpicked from public code repositorys.

70
71
72
73
74
75
76
77
78
79
  style: {
    fg: '#666'
  }
})

blessed.Text({
  parent: consoleContainer,
  top: '100%-4',
  height: 1,
  width: 2,
fork icon6
star icon16
watch icon2

+ 13 other calls in file

31
32
33
34
35
36
37
38
39
40
});

container.append(box);
screen.append(container);

let statusLine = blessed.Text({
  bottom: 0,
  width: '100%',
  height: 'shrink',
  content: 'Connecting...',
fork icon3
star icon4
watch icon3

+ 3 other calls in file

53
54
55
56
57
58
59
60
61
62
  width: '50%',
  height: '20%',
  top: '5',
  left: '5'
});
outer.prepend(new blessed.Text({left: 2, content: '<esc>|<Ctrl>-save'}))

var edit = blessed.Textbox({  
  fg: 'black',
  tags: true,
fork icon3
star icon0
watch icon2

48
49
50
51
52
53
54
55
56
57
}));

// draw UI
consoleBox(screen);

const title = new Text({
    left: 0,
    top: 0,
    content: `mspaint`,
    content: require('./ascii-logo')(),
fork icon2
star icon8
watch icon0

+ 2 other calls in file

81
82
83
84
85
86
87
88
89
90
        style: {
                fg: colorActive
        }
})

let displayPrefix = blessed.Text({
        parent: display,
        top: 11,
        left: 51,
        content: '-',
fork icon0
star icon2
watch icon2

+ 19 other calls in file

67
68
69
70
71
72
73
74
75
76
_.extend(options, listStyle())
googleList = blessed.list(options)

googleList.setItems(titles)

googleList.prepend(new blessed.Text({ content: 'Select one code tip:' }))

googleList.on('select', function (_) {
  callback(this.selected)
})
fork icon177
star icon0
watch icon62

74
75
76
77
78
79
80
81
82
83
_.extend(options, listStyle());
googleList = blessed.list(options);

googleList.setItems(titles);

googleList.prepend(new blessed.Text({content: 'Select one code tip:'}));

googleList.on('select', function (_) {
    callback(this.selected);
});
fork icon0
star icon0
watch icon1

+ 3 other calls in file

42
43
44
45
46
47
48
49
50
51
52
        }
    }
});


// Username field label
let usernameText = blessed.Text(
{
    parent: usernameForm,
    top: '15%',
    left: 0,
fork icon0
star icon0
watch icon0

+ 5 other calls in file