Browse Source

Hold on to this experiment for later.

Douglas William Thrift 14 years ago
parent
commit
c0e518780e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      pstree.cpp

+ 8 - 0
pstree.cpp

@@ -227,5 +227,13 @@ int main(int argc, char *argv[])
 		break;
 	}
 
+	std::setlocale(LC_ALL, "");
+
+	char line[MB_LEN_MAX];
+	int size(std::wctomb(line, L'└'));
+
+	if (size != -1)
+		std::cout << std::string(line, size) << std::endl;
+
 	return 0;
 }