We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7932dca commit 932c288Copy full SHA for 932c288
src/Util/util.cpp
@@ -1,6 +1,7 @@
1
#include "util.hpp"
2
3
#include <cstdlib>
4
+#include <format>
5
#include <iostream>
6
#include <pwd.h>
7
#include <unistd.h>
@@ -28,6 +29,6 @@ std::string pwd() {
28
29
}
30
31
std::string print_osc8_link(const std::string &url, const std::string &text) {
- return "\e]8;;" + url + "\e\\" + text + "\e]8;;\e\\";
32
+ return std::format("\e]8;;{}\e\\{}\e]8;;\e\\", url, text);
33
34
0 commit comments