This commit is contained in:
parent
f357285045
commit
0ece1b092e
23 changed files with 274 additions and 113 deletions
20
lib/run/run_windows.q
Normal file
20
lib/run/run_windows.q
Normal file
|
@ -0,0 +1,20 @@
|
|||
import os
|
||||
|
||||
init() {
|
||||
utf8 := 65001
|
||||
kernel32.SetConsoleCP(utf8)
|
||||
kernel32.SetConsoleOutputCP(utf8)
|
||||
main.main()
|
||||
os.exit(0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
os.exit(1)
|
||||
}
|
||||
|
||||
extern {
|
||||
kernel32 {
|
||||
SetConsoleCP(cp uint)
|
||||
SetConsoleOutputCP(cp uint)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue