mirror of
https://github.com/RGBCube/ZTerm
synced 2025-07-29 00:47:44 +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 {
|
||||
var sp = zterm.Spinner{
|
||||
.charset = &[_][]const u8{"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"},
|
||||
.finished_charset = "✓",
|
||||
.charset = &[_][]const u8{ "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" },
|
||||
.message = "Selling all your data to the CCP...",
|
||||
};
|
||||
try sp.start();
|
||||
|
@ -26,9 +25,10 @@ pub fn main() !void {
|
|||
sp.setMessage("Calculating very important stuff while selling your data...");
|
||||
|
||||
time.sleep(2 * time.ns_per_s);
|
||||
sp.setMessage("Sold all your data successfully!");
|
||||
|
||||
try sp.stop();
|
||||
try sp.stop(.{
|
||||
.charset = "✓",
|
||||
.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