CGTerm is a minimal terminal-like interface written in Go & C. It provides a simple interactive command loop with a small set of built-in commands for system interaction and basic screen control.
The project is intentionally lightweight and serves as a foundation for experimenting with terminal behavior, command handling, and modular Go packages.
- Interactive prompt: Simple
-->interface. - Built-in commands: common commands to help.
- Modular package structure: Own commands can be easily added. To do this read How to make custom commands
- Basic terminal control: Functions for clearing the screen and listing directories.
- Golang
- 5mb+ storage
Building can be done with make or building directly with go
- clone CGTerm repository
git clone https://github.com/MasterArd/CGTerm.git
cd CGTerm
- Build using make
make build
or with Go
go build .
Installation: Manually move the built binary named cgterm to the bin directory.
sudo mv cgterm /usr/bin
- clone CGTerm repository
git clone https://github.com/MasterArd/CGTerm.git
cd CGTerm
- Use
make install
make install
Once installed to the bin directory. Launch CGTerm.
Binaries can be found at Releases
| Command | Description |
|---|---|
host |
Prints the system hostname |
initscreen |
Displays basic screen configuration values |
clear |
Clears the terminal screen |
exit |
Exits the program |
save_settings |
Creates or overwrites a settings file |
whoami |
Same as host |
lsa |
List all files and directories |
lsd |
List all directories but not files |
lsf |
List all files but not directories |
help |
Show help |
cd |
Change directories |
| Command | Details |
|---|---|
fastfetch |
May need fastfetch installed |
sheh |
Required sheh and needed CGTerm installed |
hello |
Print "Hello, World!"; |
/
├── main.go # Entry point and command loop
├── Makefile # Build and run automation
└── commands/
└── pkg.go # standard commands
└── c/ # standard commands written in C
contribution can be done by forking this repository and making a pull request.
Note
Contribution might not always be accepted.
cleardisplaying rogue[(fixed)shehblocking termination from CGTerm. (fixed)
this is an improvement over UAC. (old archive): https://masterard.github.io/blue-inft/News.html
