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://www.codercto.com/soft/d/11863.html

Cypherpunks

Cypherpunks

Julian Assange、Jacob Appelbaum、Andy Müller-Maguhn、Jérémie Zimmermann / OR Books / 2012-11 / GBP 8.99

Cypherpunks are activists who advocate the widespread use of strong cryptography (writing in code) as a route to progressive change. Julian Assange, the editor-in-chief of and visionary behind WikiLea......一起来看看 《Cypherpunks》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

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

正则表达式在线测试