mirror of
https://github.com/RGBCube/ZTerm
synced 2025-07-28 08:27:45 +00:00
22 lines
613 B
Zig
22 lines
613 B
Zig
const std = @import("std");
|
|
const time = std.time;
|
|
const zterm = struct {
|
|
const Spinner = @import("src/Spinner.zig");
|
|
};
|
|
|
|
pub fn main() !void {
|
|
var sp = zterm.Spinner{
|
|
.charset = zterm.Spinner.charsets[3],
|
|
.message = "Selling all your data to the CCP...",
|
|
};
|
|
try sp.start();
|
|
|
|
time.sleep(3 * time.ns_per_s);
|
|
sp.setMessage("Calculating very important stuff while selling your data...");
|
|
|
|
time.sleep(2 * time.ns_per_s);
|
|
try sp.stop(.{
|
|
.charset = "✓",
|
|
.message = "Successfully sold all your data to the CCP! You data is not in safe hands!",
|
|
});
|
|
}
|