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
- Host: GitHub
- URL: https://github.com/uki00a/rax-blessed-driver
- Owner: uki00a
- License: mit
- Created: 2019-04-27T05:20:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T13:49:03.000Z (almost 7 years ago)
- Last Synced: 2025-10-12T21:15:02.717Z (6 months ago)
- Topics: blessed, rax, react
- Language: JavaScript
- Homepage:
- Size: 271 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)