add system detector
This commit is contained in:
parent
d24e7088e3
commit
1dc355a722
|
@ -30,10 +30,18 @@ int main()
|
||||||
}
|
}
|
||||||
else if(command=="cls")
|
else if(command=="cls")
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
|
#pragma message("windows system detected.")
|
||||||
system("cls");
|
system("cls");
|
||||||
// windows system("cls");
|
#endif
|
||||||
// linux system("clear");
|
#ifdef _linux_
|
||||||
// macOS system("clear");
|
#pragma message("linux system detected.")
|
||||||
|
system("clear");
|
||||||
|
#endif
|
||||||
|
#ifdef TARGET_OS_MAC
|
||||||
|
#pragma message("macOS detected.")
|
||||||
|
system("clear");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if(command=="del")
|
else if(command=="del")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue