mirror of
https://github.com/RGBCube/ZTerm
synced 2025-07-29 08:57:46 +00:00
Fix README example
This commit is contained in:
parent
977f47342e
commit
8716c68f55
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -16,8 +16,7 @@ const zterm = @import("zterm");
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
var sp = zterm.Spinner{
|
var sp = zterm.Spinner{
|
||||||
.charset = &[_][]const u8{"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"},
|
.charset = &[_][]const u8{ "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" },
|
||||||
.finished_charset = "✓",
|
|
||||||
.message = "Selling all your data to the CCP...",
|
.message = "Selling all your data to the CCP...",
|
||||||
};
|
};
|
||||||
try sp.start();
|
try sp.start();
|
||||||
|
@ -26,9 +25,10 @@ pub fn main() !void {
|
||||||
sp.setMessage("Calculating very important stuff while selling your data...");
|
sp.setMessage("Calculating very important stuff while selling your data...");
|
||||||
|
|
||||||
time.sleep(2 * time.ns_per_s);
|
time.sleep(2 * time.ns_per_s);
|
||||||
sp.setMessage("Sold all your data successfully!");
|
try sp.stop(.{
|
||||||
|
.charset = "✓",
|
||||||
try sp.stop();
|
.message = "Successfully sold all your data to the CCP! You data is not in safe hands!",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue