API/api.medcify.app/node_modules/blessed/bin/tput.js
2022-09-26 11:41:44 +05:30

17 lines
301 B
JavaScript

#!/usr/bin/env node
var blessed = require('../')
, argv = process.argv.slice(2)
, cmd = argv.shift()
, tput;
tput = blessed.tput({
terminal: process.env.TERM,
termcap: !!process.env.USE_TERMCAP,
extended: true
});
if (tput[cmd]) {
process.stdout.write(tput[cmd].apply(tput, argv));
}