Skip to content

Commit

Permalink
more fix of text io
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed May 21, 2023
1 parent 3bfc686 commit b5c18a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/my-gists
Submodule my-gists updated 1 files
+189 −30 windows/small_io.hpp
5 changes: 4 additions & 1 deletion src/shioricaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ int wmain(int argc, wchar_t* argv[]){
req_buf += req_line + "\r\n";
if(req_line.empty()) {
const auto ret = ukagaka::protocol_message{shiori(req_buf)};
out << to_ansi_colored_string(ret);
if(out.is_console())
out << to_ansi_colored_wstring(ret);
else
out << std::string(ret);
req_buf.clear();
}
}
Expand Down

0 comments on commit b5c18a9

Please sign in to comment.