# termutil

> terminfo & termios utility for node.js

Latest version **0.1.1** (published 2015-01-01) · 0 weekly downloads

## Install

```sh
npm install termutil
pnpm add termutil
yarn add termutil
bun add termutil
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-01-01 |
| First published | 2015-01-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.3.1 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Author | ousttrue@gmail.com |

## Links

- npm: https://www.npmjs.com/package/termutil
- Repository: https://github.com/ousttrue/termutil
- npm.io page: https://npm.io/package/termutil

## Recent versions

- 0.1.1 (latest) — 2015-01-01
- 0.1.0 — 2015-01-01

## README

# termutil

Termutil is an terminfo utility for term.js.

This module provide non block stdin input event 
and terminfo command write to stdout.

## build

    node-waf configure build

## usage

    var termutil=require('termutil');
    
    var term=new termutil.Term();
    
    var keymap={
        0x71: // q
            function(){ process.exit(); },
        0x68: // h
            function(){ term.tcmd('cub1'); },
        0x6a: // j
            function(){ term.tcmd('cud1'); },
        0x6b: // k
            function(){ term.tcmd('cuu1'); },
        0x6c: // l
            function(){ term.tcmd('cuf1'); },
    };
    
    term.on('keyinput', function(code){
        if(code in keymap){
            keymap[code]();
        }
        else{
            process.stdout.write('['+code+']');
        }
    });
    
    term.tcmd('clear');
    term.listen();

---
_Source: https://npm.io/package/termutil · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
