How to use the blessed-contrib.picture function in blessed-contrib

To help you get started, we’ve selected a few blessed-contrib 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 goldbergyoni / nodejs-course / examples / basics / hello-random-students / final.js View on Github external
const allStudents = fs.readFile('./students.txt', 'utf-8', function (error, data) {
            const studentsArray = data.split(';');
            var pic = contrib.picture(
                { file: './goodmorning.png'
                , cols: 25
                , onReady: (ready)})
             function ready() {screen.render()}
    
            studentsArray.forEach(student => {
                console.log(`Good morning ${student}`)
            });
        })
    }