This Julia package displays CPU and RAM memory usage information on your computer.
$ curl -fsSL https://install.julialang.org | sh
PS> winget install julia -s msstore
You can run julia --version
to confirm Julia is installed on your computer.
$ git clone https://github.com/AtelierArith/TerminalSystemMonitor.jl.git
$ cd TerminalSystemMonitor.jl
$ pwd
path/to/TerminalSystemMonitor.jl
$ ls
Project.toml README.md main.jl src
$ julia -q
julia> using Pkg; Pkg.activate("."); Pkg.instantiate()
$ ls
Project.toml README.md main.jl src
$ julia main.jl
You will get the following output like this:
──────────────────────╮╭──────────────────────╮
│ ┌ ┐││ ┌ ┐│
│id: 0┤■■■■ 37 ││id: 4┤■■ 23.2 │
│id: 1┤ 0 ││id: 5┤ 0 │
│id: 2┤■■■ 29 ││id: 6┤■ 15.2 │
│id: 3┤ 0 ││id: 7┤ 1 │
│ └ ┘││ └ ┘│
╰──────────────────────╯╰──────────────────────╯
╭───────────────────────╮╭───────────────────────╮
│ ┌ ┐││ ┌ ┐│
│ id: 8┤■ 10.9 ││id: 12┤ 3 │
│ id: 9┤ 0 ││id: 13┤ 0 │
│id: 10┤■ 5.9 ││id: 14┤ 2 │
│id: 11┤ 0 ││id: 15┤ 0 │
│ └ ┘││ └ ┘│
╰───────────────────────╯╰───────────────────────╯
╭──────────────────────╮
│ ┌ ┐│
│Mem: ┤■■■■■■■■ 29.4 │
│ └ ┘│
╰──────────────────────╯
Ofcourse, you can launch the functionality in your terminal.
julia> using TerminalSystemMonitor: main; main()
You might think of the `htop' command. Yes, you can:
julia> using Htop_jll; run(Htop_jll.htop())
However, Htop_jll only supports Unix systems. Our Julia package runs on Windows as long as Term.jl and UnicodePlots.jl support Windows.
It's possible. We could use bottom a.k.a btm
command.
btm -b