An open API service indexing awesome lists of open source software.

https://github.com/uki00a/rax-blessed-driver

blessed driver for Rax
https://github.com/uki00a/rax-blessed-driver

blessed rax react

Last synced: 6 months ago
JSON representation

blessed driver for Rax

Awesome Lists containing this project

README

          

# rax-blessed-driver

> Note: This package is in early stage.

A [Rax](https://github.com/alibaba/rax) driver for the [blessed](https://github.com/chjj/blessed).

## Installation

```bash
$ npm install rax blessed rax-blessed-driver
```

## Usage

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

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

render(, screen, { driver });
```

### neo-blessed

```javascript
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/](./examples).

```bash
$ node run_example.js hooks
```

## Known issues
* Effects (hover, focus) do not work once mounted.

## TODO
- [ ] `blessed-contrib` support

## Inspired By
* [react-blessed](https://github.com/Yomguithereal/react-blessed)