GY-63_MS5611/libraries/ANSI
2022-08-24 11:00:54 +02:00
..
.github add funding.yml 2022-08-03 21:56:07 +02:00
examples 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
test 0.1.4 ANSI 2021-10-18 16:35:48 +02:00
.arduino-ci.yml 0.1.4 ANSI 2021-10-18 16:35:48 +02:00
ansi.cpp 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
ansi.h 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
CHANGELOG.md 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
keywords.txt 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
library.json 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
library.properties 0.1.6 ANSI 2022-08-24 11:00:54 +02:00
LICENSE 0.1.5 ANSI 2021-12-13 16:45:59 +01:00
README.md 0.1.6 ANSI 2022-08-24 11:00:54 +02:00

Arduino CI Arduino-lint JSON check License: MIT GitHub release

ANSI

Arduino library with basic ANSI display codes for terminal applications.

Description

ANSI codes are special codes that are send to a terminal e.g. VT100 to add attributes to displayed characters. Typical examples are bold, blink or colour. Also known as escape codes the set of codes is large, however not all terminal types do support all codes.

Sending these ANSI codes to a simple ASCII only terminal like the one in the Arduino IDE might result in garbage. So use with care.

Terminals tested

Tests are done with

  • TeraTerm 4.102 + 4.106 (VT100, VT202, VT525 mode)
  • Putty 0.71

Other terminal program's exist so please let me know if yours is working too. If not, please open an issue.

Operation

See examples

Performance

Since 0.1.5 there is some focus on performance. Using ansi.print() and ansi.println() for printing text and numbers is improved a bit since 0.1.4 by adding the private write(array, length).

Experimental 0.1.6

Version 0.1.6 added a number of experimental function that need more testing. Some are working, others are unclear, but the user can uncomment these and experiment with them if needed.

Also added is the int deviceType() function which also need more testing

As always, constructive feedback is welcome.

Future

  • test more terminal programs (Linux mac)
  • write more examples
    • DOS emulator?
  • increase functionality
    • which codes are useful ?
  • investigate performance. (first step made in 0.1.5 but more possible)
    • add line buffer in write(c) to improve throughput?
    • need for flush() with line buffer?
    • rewrite functions, replace print() by _stream->write() calls? (effect on size?)