Skip to content

πŸ“š Learning and exploring features of the terminal

Notifications You must be signed in to change notification settings

dgroomes/terminal-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

terminal-playground

πŸ“š Learning and exploring features of the terminal (i.e. iTerm2).

Description

Different from the shell (like Bash or Z shell), the terminal is the software that houses the shell. The terminals we know today are technically terminal emulators because they emulate old-school hardware terminals using graphical windowing software.

Some neat features of terminals are their ability to stylize text with colors, font weights and more. They take instructions from the output stream (in-band communication?) of the the program they are running. These instructions take the form of ASCII control characters and ANSI escape sequences.

Instructions

In this project, there are some simple Java programs that exercise the terminal. Any programming language can be used. Bash scripts often make use of the escape sequences to stylize text in the terminal but there are so many layers of string processing that can happen in a Bash command that it doesn't make for the most effective example for learning.

Follow these instructions to run the Java programs.

  1. Use Java 17
  2. Compile and run a program that produces a bell sound:
  3. Compile and run a program that produces stylized text output:
    • java StylizedText.java
  4. Try the other programs:
    • java CursorControl.java

Reference

About

πŸ“š Learning and exploring features of the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages