Node 终端界面库 blessed-contrib

码农软件 · 软件分类 · GUI开发框架 · 2019-08-07 18:42:55

软件介绍

blessed-contrib 是使用 Node.js 构建终端应用界面的库。

演示效果如下:

term

term

示例代码:

 var blessed = require('blessed')
   , contrib = require('blessed-contrib')
   , screen = blessed.screen()
   , line = contrib.line(
       { style:
         { line: "yellow"
         , text: "green"
         , baseline: "black"}
       , xLabelPadding: 3
       , xPadding: 5
       , label: 'Title'})
   , data = {
       x: ['t1', 't2', 't3', 't4'],
       y: [5, 1, 7, 5]
    }
 screen.append(line) //must append before setting data
 line.setData([data])

 screen.key(['escape', 'q', 'C-c'], function(ch, key) {
   return process.exit(0);
 });

 screen.render()

本文地址:https://codercto.com/soft/d/11863.html

Pro JavaScript Design Patterns

Pro JavaScript Design Patterns

Dustin Diaz、Ross Harmes / Apress / 2007-12-16 / USD 44.99

As a web developer, you’ll already know that JavaScript™ is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power......一起来看看 《Pro JavaScript Design Patterns》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试