Commit Graph

12 Commits (857d6a2a8e924618d37e75e6eda5e008a431cc48)

Author SHA1 Message Date
Tatsuhiro Tsujikawa a6970895ac clang-format 2016-02-16 00:20:12 +09:00
kwkam 04eacf05e7 Update WinConsoleFile.cc
add blank line
2016-02-13 16:03:41 +08:00
kwkam 1c573c9708 src/WinConsoleFile.cc: fix colour
Try to make it less confusing
2016-02-13 16:01:41 +08:00
kwkam 25ae17b490 src/WinConsoleFile.cc: fix colour
Set default foreground/background colour correctly
2016-02-12 14:24:04 +08:00
Tatsuhiro Tsujikawa b1132d6b10 make clang-format using clang-format-3.6 2015-12-27 18:40:08 +09:00
Tatsuhiro Tsujikawa 1188e4f1a2 Fix mingw32 build with gcc 4.8.2
Now mingw-w64 C++ compiler defines __USE_MINGW_ANSI_STDIO to 1, we
have to follow it as well.  We hope that mingw version of stdio
function behaves like Linux ones.  We have not tested them thoroughly
yet.  pthread for windows defines its own HAVE_STRUCT_TIMESPEC macro.
To avoid warning, we rename our version of it as
HAVE_A2_STRUCT_TIMESPEC.
2014-03-24 00:37:30 +09:00
Nils Maier 87ea4904a0 Implement basic color support for the Windows console
Only \033[*m (SGR) is supported, with a 16+16 color terminal.
2013-11-21 15:34:34 +01:00
Nils Maier b0556a7519 Do not use a virtual varargs function
This stuff breaks in some compiler (configurations)
2013-03-02 15:48:26 +01:00
Tatsuhiro Tsujikawa e86fd44dc5 Console color output
Log level and download result string is now colored.
2012-12-08 21:48:18 +09:00
Tatsuhiro Tsujikawa 73b75186c7 Handle the case when MINGW32 vsnprintf returns -1
MINGW32 vsnprintf returns -1 if output is truncated.  Increased buffer
for vsnprintf in WinConsoleFile and fmt.
2012-06-24 16:56:34 +09:00
Tatsuhiro Tsujikawa 97f34ab668 Added global::cerr. windows.h now included from common.h
We replaced most of std::cerr with global::cerr.  windows.h is now
included from common.h. Before including it, we define WINVER.  We
renamed some variable name because some macros in windows.h collide
with them.
2011-08-10 00:38:48 +09:00
Tatsuhiro Tsujikawa a10cda2f17 Use global::cout to output string to stdout.
In MinGW32 build, global::cout is WinConsoleFile. When outputing to
console, it uses WriteConsoleW, so Unicode characters are written.
Fixed memory leak in WChar<->MultiByte conversion functions.  The
portion of code which uses std::cout is rewritten to use global::cout.
2011-08-09 23:33:55 +09:00