3.0.4 • Published 2 years ago

term-ng v3.0.4

Weekly downloads
47
License
MIT
Repository
github
Last release
2 years ago

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/

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.9

7 years ago

0.7.8

7 years ago

0.7.7

7 years ago

0.7.6

7 years ago

0.7.5

8 years ago

0.7.4

8 years ago

0.7.3

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.0

8 years ago

0.5.9

8 years ago

0.5.8

8 years ago

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.3.0-beta.0

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.1.0-beta.2

8 years ago

0.1.0-beta.1

8 years ago

0.1.0-beta.0

8 years ago