jupyterlite / cockle

In-browser bash-like shell implemented in TypeScript.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Support coloured output for ls and grep commands #22

Closed ianthomas23 closed 3 months ago

ianthomas23 commented 3 months ago

Support coloured output for ls and grep commands. This is actually a surprisingly small change in the code just to set the TERM environment variable, now that aliases are set up to use colour in both ls and grep commands by default. It uses the default ls colours which can be checked using dircolors --print-ls-colors; these could be overridden by setting an LS_COLORS env var.

Screenshot 2024-07-18 at 08 51 01