Skip to content

Commit b5c18a9

Browse files
committed
more fix of text io
1 parent 3bfc686 commit b5c18a9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/my-gists

src/shioricaller.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ int wmain(int argc, wchar_t* argv[]){
6161
req_buf += req_line + "\r\n";
6262
if(req_line.empty()) {
6363
const auto ret = ukagaka::protocol_message{shiori(req_buf)};
64-
out << to_ansi_colored_string(ret);
64+
if(out.is_console())
65+
out << to_ansi_colored_wstring(ret);
66+
else
67+
out << std::string(ret);
6568
req_buf.clear();
6669
}
6770
}

0 commit comments

Comments
 (0)