New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

termbox

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

termbox

termbox bindings for node.js

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

node-termbox

Some simple bindings of termbox to node.js. Not perfect at all, and I'm sure there's bugs somewhere, but for a one-nighter it worked out pretty well. I seem to be able to do anything I would need to (time will tell). Bug reports welcome.

FUNCTIONS

init() -> [Number]
shutdown() -> [Number] -- Always 0
width() -> [Number]
height() -> [Number]
clear() -> [Number] -- Always 0
present() -> [Number] -- Always 0
setCursor(x, y) [Number], [Number] -> [Number] -- Always 0
hideCursor() -> [Number] -- Always 0
changeCell(x, y, char, fg, bg) [Number], [Number], [String], [Number], [Number] -> [Number] -- Always 0
selectInputMode(mode) [Number] -> [Number]
setClearAttributes(fg, bg) [Number], [Number]
peekEvent(timeout) [Number] (milliseconds) -> [Object] -- type, mod, key, ch, w, h
pollEvent() -> [Object] -- type, mod, key, ch, w, h

CONSTANTS

I'll spare you the detail of every single one of these, as it's a massive list. I expose everything defined in termbox.h, so go to town.

LICENSE

Copyright (c) 2013 Josh Klar <j@iv597.com>

Do whatever you want with this code as long as you leave this header.
This code has no warranty. If shit hits the fan, it's your problem.

FAQs

Package last updated on 27 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts