Gathering detailed insights and metrics for termios-fixedv12
Gathering detailed insights and metrics for termios-fixedv12
Gathering detailed insights and metrics for termios-fixedv12
Gathering detailed insights and metrics for termios-fixedv12
npm install termios-fixedv12
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
36 Commits
1 Watching
2 Branches
1 Contributors
Updated on 11 Aug 2020
C++ (80.62%)
JavaScript (17.42%)
Python (1.97%)
Cumulative downloads
Total Downloads
Last day
0%
81
Compared to previous day
Last week
3.2%
423
Compared to previous week
Last month
2.3%
1,664
Compared to previous month
Last year
72.5%
18,619
Compared to previous year
node-termios is a module for getting and setting terminal attributes.
an attr
object may contain on or more of the following boolean fields:
attr.iflag
:
IGNBRK
: ignore BREAK conditionBRKINT
: map BREAK to SIGINTIGNPAR
: ignore (discard) parity errorsPARMRK
: mark parity and framing errorsINPCK
: enable checking of parity errorsISTRIP
: strip 8th bit off charsINLCR
: map NL into CRIGNCR
: ignore CRICRNL
: map CR to NL (ala CRMOD)IXON
: enable output flow controlIXOFF
: enable input flow controlIXANY
: any char will restart after stopIMAXBEL
: ring bell on input queue fullattr.oflag
:
OPOST
: enable following output processingONLCR
: map NL to CR-NL (ala CRMOD)OCRNL
: map CR to NLONOCR
: No CR output at column 0ONLRET
: NL performs the CR functionattr.cflag
:
CSIZE
: character size maskCS5
: 5 bits (pseudo)CS6
: 6 bitsCS7
: 7 bitsCS8
: 8 bitsCSTOPB
: send 2 stop bitsCREAD
: enable receiverPARENB
: parity enablePARODD
: odd parity, else evenHUPCL
: hang up on last closeCLOCAL
: ignore modem status linesattr.lflag
:
ECHOKE
: visual erase for line killECHOE
: visually erase charsECHOK
: echo NL after line killECHO
: enable echoingECHONL
: echo NL even if ECHO is offECHOPRT
: visual erase mode for hardcopyECHOCTL
: echo control chars as ^(Char)ISIG
: enable signals INTR, QUIT, [D]SUSPICANON
: canonicalize input linesIEXTEN
: enable DISCARD and LNEXTEXTPROC
: external processingTOSTOP
: stop background jobs from outputFLUSHO
: output being flushed (state)PENDIN
: XXX retype pending input (state)NOFLSH
: don't flush after interruptXCASE
: canonical upper/lower case.setattr(fd, attr)
: Sets attributes of the terminal bound to the
file descriptor:
.getattr(fd)
: Returns an object describing the current settings
of the terminal bound to the file descriptor:
var termios = require('termios'), data = '';
console.log("Please type something:");
process.stdin.on("data", function(d) {data += d.toString()});
setTimeout(function() {
console.log("Disabling ECHO. You won't see what you type now");
termios.setattr(process.stdin.fd, {lflag: { ECHO: false }})
console.log("\nYou typed '"+data+"'");
data = "";
}, 3000);
setTimeout(function() {
console.log("Enabling ECHO.");
termios.setattr(process.stdin.fd, {lflag: { ECHO: false }})
console.log("\nYou typed '"+data+"'");
}, 6000);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More