<commit_before># blessed

A curses-like library for node.js.

As of right now, it does not read all terminfo. It was designed for one
terminal's terminfo: **xterm**.

I want this library to eventually become a high-level library for terminal
widgets.

## Example Usage

``` js
var Program = require('blessed').Program
  , program = new Program;

program.on('key', function(ch, key) {
  if (key.ctrl && key.name === 'c') {
    console.log('This would have been SIGINT!');
  }
});

program.setMouse({ normalMouse: true });

program.mouse('mouse', function(data) {
  console.log('Mouse event received:');
  console.log(data.button, data.x, data.y);
});

program.alternateBuffer();

program.clear();

program.bg('white');
program.fg('blue');
program.write('Hello world');
program.fg('!blue');
program.setx(1);
program.down(5);
program.write('Hi again!');
program.bg('!white');<commit_msg>fix typo<commit_after># blessed

A curses-like library for node.js.

As of right now, it does not read all terminfo. It was designed for one
terminal's terminfo: **xterm**.

I want this library to eventually become a high-level library for terminal
widgets.

## Example Usage

``` js
var Program = require('blessed').Program
  , program = new Program;

program.on('key', function(ch, key) {
  if (key.ctrl && key.name === 'c') {
    console.log('This would have been SIGINT!');
  }
});

program.setMouse({ normalMouse: true });

program.on('mouse', function(data) {
  console.log('Mouse event received:');
  console.log(data.button, data.x, data.y);
});

program.alternateBuffer();

program.clear();

program.bg('white');
program.fg('blue');
program.write('Hello world');
program.fg('!blue');
program.setx(1);
program.down(5);
program.write('Hi again!');
program.bg('!white');
{'fraction_non_alphanumeric': 0.17386363636363636, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 4.87, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3560362', 'n_tokens_mistral': 577, 'n_tokens_neox': 568, 'n_words': 164}