mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-22 10:58:47 +08:00
add system detector
This commit is contained in:
+11
-3
@@ -30,10 +30,18 @@ int main()
|
||||
}
|
||||
else if(command=="cls")
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#pragma message("windows system detected.")
|
||||
system("cls");
|
||||
// windows system("cls");
|
||||
// linux system("clear");
|
||||
// macOS system("clear");
|
||||
#endif
|
||||
#ifdef _linux_
|
||||
#pragma message("linux system detected.")
|
||||
system("clear");
|
||||
#endif
|
||||
#ifdef TARGET_OS_MAC
|
||||
#pragma message("macOS detected.")
|
||||
system("clear");
|
||||
#endif
|
||||
}
|
||||
else if(command=="del")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user