Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

term-ng

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

term-ng

Terminal/$TERM feature snooping and whitelisting

  • 3.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-92.64%
Maintainers
1
Weekly downloads
 
Created
Source

term-ng

Enables enhanced node.js/fish-shell/XTerm/iTerm3 feature integration.

Publishing Status

npm Libraries.io
Travis Rollup

Development Status

Travis Libraries.io
Snyk Code-Climate Code-Climate Coverage

Documentation/Help

Inch.io Twitter

TermNG (Next Generation)

  • Senses 24bit colour (truecolor) when $TERM_COLOR=16m environment variable is set.
  • Adds --color=16m to front of process.argv before wrapping the supports-color module.
  • Indicate enhanced media support by setting:
    • $TERM_IMAGES=enabled : Allow rendering of inline images using OSC sequences.
    • $TERM_AUDIO=enabled : Allow enhanced audio.
  • Indicate that you use a font that has box drawing or full extended characters.
    • $TERM_FONT=box : Terminal font has UTF8 box drawing characters.
    • $TERM_FONT=full : Terminal font has full UTF8 extras (such as Menlo, DejaVu Mono).
  • Sense $TERM suffixes to indicate enhanced termcap capabilities.

In fish, it's a simple as defining a universal, exported variable.

  set -Ux TERM_IMAGES enabled
  set -Ux TERM_FONT full

In bash an export TERM_IMAGES=enabled in ~/.bashrc will do the trick. I don't use tcsh or zsh anymore so can't remember exactly which files are used when those shells are invoked interactively. Fish is almost always invoked interactively - which is kind of the point of fish, it being the 'Friendly INTERACTIVE Shell' after all! Write scripts for portablility (sh/bash/perl even node) then write fish functions to interact with those scripts from the keyboard... but I digress.

Usage

Terminal Color Test

From inside the package directory, running npm run-script colors will generate a preview of the entire color gamut your terminal is capable of. Output of a recent iTerm shown below:

Color preview

Documentation

Full documentation can be found at https://thebespokepixel.github.io/term-ng/

Keywords

FAQs

Package last updated on 06 Nov 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc