瀏覽代碼

Merge branch 'master' of code.douglasthrift.net:dtpstree

Douglas William Thrift 14 年之前
父節點
當前提交
4a3cdddbb2
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      dtpstree.cpp

+ 8 - 0
dtpstree.cpp

@@ -257,5 +257,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;
 }