You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve dependencies, ensure you are in the correct directory, then activate the Julia environment and instantiate the project:
34
44
35
-
```
45
+
```sh
36
46
$ pwd
37
47
path/to/TerminalSystemMonitor.jl
38
48
$ ls
@@ -43,15 +53,17 @@ julia> using Pkg; Pkg.activate("."); Pkg.instantiate()
43
53
44
54
## Usage
45
55
56
+
Run the program using the following commands:
57
+
46
58
```sh
47
59
$ ls
48
60
Project.toml README.md main.jl src
49
61
$ julia main.jl
50
62
```
51
63
52
-
You will get the following output like this:
64
+
You will see an output similar to this:
53
65
54
-
```
66
+
```bash
55
67
──────────────────────╮╭──────────────────────╮
56
68
│ ┌ ┐││ ┌ ┐│
57
69
│id: 0┤■■■■ 37 ││id: 4┤■■ 23.2 │
@@ -75,26 +87,28 @@ You will get the following output like this:
75
87
╰──────────────────────╯
76
88
```
77
89
78
-
Ofcourse, you can launch the functionality in your terminal.
90
+
Alternatively, you can launch the functionality directly from Julia:
79
91
80
92
```julia
81
93
julia>using TerminalSystemMonitor: main; main()
82
94
```
83
95
84
-
## Why not htop?
96
+
## Why not `htop`?
85
97
86
-
You might think of the `htop' command. Yes, you can:
98
+
You might be familiar with the `htop` command, which provides similar functionality. You can use `htop` in Julia as follows:
87
99
88
100
```julia
89
101
julia>using Htop_jll; run(Htop_jll.htop())
90
102
```
91
103
92
-
However, [Htop_jll](https://github.com/JuliaBinaryWrappers/Htop_jll.jl?tab=readme-ov-file#platforms) only supports Unix systems. Our Julia package runs on Windows as long as Term.jl and UnicodePlots.jl support Windows.
104
+
However, `Htop_jll` only supports Unix-based systems. The TerminalSystemMonitor.jl package also supports Windows as long as Term.jl and UnicodePlots.jl are available on the platform.
93
105
94
-
## Why not bottom?
106
+
## Why not `bottom`?
95
107
96
-
It's possible. We could use [bottom](https://github.com/ClementTsang/bottom) a.k.a `btm` command.
108
+
You can also use bottom, also known as the btm command:
97
109
98
-
```sh
110
+
```
99
111
btm -b
100
112
```
113
+
114
+
However, TerminalSystemMonitor.jl offers a cross-platform solution that integrates directly with Julia, providing similar functionality in a familiar environment.
0 commit comments