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

The Science of Programming

The Science of Programming

David Gries / Springer / 1989-4-21 / USD 99.00

Describes basic programming principles and their step-by- step applications.Numerous examples are included.一起来看看 《The Science of Programming》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

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

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码