How to use the ANSIImage function from blessed
Find comprehensive JavaScript blessed.ANSIImage code examples handpicked from public code repositorys.
320 321 322 323 324 325 326 327 328 329 330
} } }); // Image of each part var partPic = blessed.ANSIImage({ // Halfway to the right minus half the image's width left: '50%-14', top: 1, scale: 1,
0
6
0
+ 2 other calls in file
37 38 39 40 41 42 43 44 45 46 47 48
console.log(fs.existsSync(__dirname)); console.log(fs.existsSync(__dirname + "/my-program-icon.png")); // Add a png icon to the box var icon = blessed.ANSIImage({ parent: box, // top: 0, // left: 0, // type: "overlay",
0
0
0
blessed.box is the most popular function in blessed (4356 examples)