DEV Community

Cover image for I made a tool for looking up ANSI color code
Jack Lin
Jack Lin

Posted on

I made a tool for looking up ANSI color code


This small program can help me select ANSI color by specific numbers, then automatically generate color codes. Like the following picture:

Image description

  1. Execute ./aecc -f to look up font colors..
  2. Execute ./aecc -b to look up background colors.
  3. Execute ./aecc 10 1 to generate the code of green font and red background. If you want to generate a bold font, execute ./aecc B10 1.

This program is written in both cpp and python.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.