How to use the image function from blessed

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

92
93
94
95
96
97
98
99
100
101

// Append our box to the screen.
screen.append(box);

// Add a PNG icon to the box (X11 only)
var icon = blessed.image({
  parent: box,
  top: 0,
  left: 0,
  width: 'shrink',
fork icon549
star icon0
watch icon1

+ 7 other calls in file

538
539
540
541
542
543
544
545
546
547
548
549
550






//
// // Add a PNG icon to the box (X11 only)
// var icon = blessed.image({
//   parent: box,
//   top: 0,
//   left: 0,
//   width: 'shrink',
fork icon3
star icon0
watch icon0

14
15
16
17
18
19
20
21
22
23
getWeatherIcon(fd) {
    fs.exists(fd, exists => {
        if (!exists) {
            fs.writeFileSync(fd, blessed.ansiimage.curl('http://openweathermap.org/img/w/' + w.weather[0].icon + '.png'));
        }
        ui.weatherIcon = blessed.image({
            parent: ui.screen,
            left: '0%',
            top: '0%',
            width: '50%',
fork icon0
star icon0
watch icon0