Skip to content

Commit

Permalink
Added version number in help
Browse files Browse the repository at this point in the history
  • Loading branch information
Guigui220D committed Oct 21, 2021
1 parent faeb4de commit 3805dcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/help.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
⋯⋯⋯⋯⋯
Thanks for using HandyUnicode!
Thanks for using HandyUnicode! (ver 1.0)

If characters don't render properly, make sure your terminal is set up for utf8, and has a complete font for unicode

Expand Down
4 changes: 4 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ pub fn main() anyerror!void {
const stderr = std.io.getStdErr().writer();
const stdout = std.io.getStdOut().writer();

_ = system("chcp 65001");

const cwd = std.fs.cwd(); //Current directory folder

try stdout.writeAll(
Expand Down Expand Up @@ -97,3 +99,5 @@ fn prompt(buffer: []u8) !?[]u8 {
fn showHelp() !void {
try std.io.getStdOut().writer().writeAll(@embedFile("help.txt"));
}

extern fn system(command: [*c]const u8) c_int;

0 comments on commit 3805dcc

Please sign in to comment.