1
Fork 0
mirror of https://github.com/RGBCube/ZTerm synced 2025-07-29 08:57:46 +00:00

Fix README example

This commit is contained in:
RGBCube 2023-05-18 22:10:50 +03:00
parent 977f47342e
commit 8716c68f55

View file

@ -17,7 +17,6 @@ const zterm = @import("zterm");
pub fn main() !void {
var sp = zterm.Spinner{
.charset = &[_][]const u8{ "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" },
.finished_charset = "✓",
.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!",
});
}
```