CGTerm is a minimal terminal-like interface written in Go & C. It provides a interactive command loop with a set of built-in commands for system interaction.
The project is somewhat lightweight and serves as a foundation for a terminal emulator, command handling, and modular Go & C 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 from source can be done with go
- clone CGTerm repository
git clone https://github.com/MasterArd/CGTerm.git
cd CGTerm
- Install
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 |
clear |
Clears the terminal screen |
exit |
Exits the program |
whoami |
Same as host |
lsa |
List all files and directories |
lsd |
List all directories but not files |
lsf |
List all files but not directories |
lse |
List all executable files and nothing else |
help |
Show help |
batt |
Show battery status in a live view |
cd |
Change directories |
cg |
execute CGTerm shell scripts |
cgtermff |
show fetch of CGTerm |
| 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
├── customConfig/ # Directory for custom (startup) configs
└──startup.go # [optional] Custom startup file
└── commands/
├── stdpkg.go # Standard commands
├── registry.go # Collecting commands.
├── cg.go # Needed for CGTerm shell execution
└── 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.
helpnot working and giving large errorscleardisplaying rogue[(fixed)shehblocking termination from CGTerm. (fixed)sudoinfitepasswordinput spam whensudois prompted. (fixed)- text editors like
nano, vi, vim, nvimcurrently dont work due tostdin(fixed)
this is an improvement over UAC. (old archive): https://msad.online/projects
