Skip to content

Commit 529b4e0

Browse files
authored
Merge pull request #318 from kernelwernel/dev
Dev branch sync
2 parents 8cb2491 + 05a41e5 commit 529b4e0

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

src/cli.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
#include "vmaware.hpp"
5151

52-
constexpr const char* ver = "2.1.2";
52+
constexpr const char* ver = "2.2.0";
5353
constexpr const char* date = "April 2025";
5454

5555
std::string bold = "\033[1m";
@@ -755,6 +755,18 @@ std::string vm_description(const std::string& vm_brand) {
755755
}
756756

757757

758+
void edit_previous_line() {
759+
#if (CLI_WINDOWS)
760+
std::cout << "\x1b[2K";
761+
std::cout << "\x1b[1A" << "\x1b[2K";
762+
std::cout << "\r";
763+
#else
764+
std::cout << "\r\033[K";
765+
#endif
766+
}
767+
768+
769+
758770
void checker(const VM::enum_flags flag, const char* message) {
759771
if (is_unsupported(flag)) {
760772
if (arg_bitset.test(COMPACT)) {
@@ -798,7 +810,6 @@ void checker(const VM::enum_flags flag, const char* message) {
798810
return;
799811
}
800812

801-
802813
if (VM::check(flag)) {
803814
std::cout << detected << bold << " Checking " << message << "..." << enum_name << ansi_exit << "\n";
804815
} else {

src/vmaware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
55
* ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
66
* ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
7-
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ 2.1.2 (April 2025)
7+
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ 2.2.0 (April 2025)
88
*
99
* C++ VM detection library
1010
*

src/vmaware_MIT.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
55
* ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
66
* ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
7-
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ 2.1.2 (April 2025)
7+
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ 2.2.0 (April 2025)
88
*
99
* C++ VM detection library
1010
*
@@ -26,7 +26,7 @@
2626
*
2727
* MIT License
2828
*
29-
* Copyright (c) 2024 kernelwernel
29+
* Copyright (c) 2025 kernelwernel
3030
*
3131
* Permission is hereby granted, free of charge, to any person obtaining a copy
3232
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)