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

https://github.com/danieloneill/jsiterminal

Extremely simple JSI component to accept keyboard input on a Linux terminal
https://github.com/danieloneill/jsiterminal

Last synced: 5 months ago
JSON representation

Extremely simple JSI component to accept keyboard input on a Linux terminal

Awesome Lists containing this project

README

          

# jsiterminal
Extremely simple JSI component to accept keyboard input on a Linux terminal

## Installation:

```
make && sudo make install
```

## Usage:

```
require('Terminal');

var stdin = new Terminal();
while(1)
{
System.update(50);
var ch = stdin.read();
while( ch && ch.length > 0 )
{
puts("I got a key: " + ch);
ch = stdin.read();
}
}
```