JSPM

rax-blessed-driver

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18986F
  • License MIT

A Rax driver for blessed.

Package Exports

  • rax-blessed-driver

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rax-blessed-driver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rax-blessed-driver

Note: This package is in early stage.

A Rax driver for the blessed.

Installation

$ npm install rax blessed rax-blessed-driver

Usage

import blessed from 'blessed';
import { render, createElement } from 'rax';
import createDriver from 'rax-blessed-driver';

const App = () => (
  <box>Hello</box>
);
const driver = createDriver()
const screen = blessed.screen({
  autopadding: true,
  smartCSR: true,
  title: 'sample',
  fullUnicode: true,
  debug: true
});

render(<App />, screen, { driver });

neo-blessed

import blessed from 'neo-blessed';
import { render, createElement } from 'rax';
import createDriver from '../src';

const driver = createDriver(blessed);

Examples

Examples can be found in examples/.

$ node run_example.js hooks

Known issues

  • Effect (hover, focus) do not work once mounted.

TODO

  • blessed-contrib support

Inspired By