summaryrefslogtreecommitdiffstats
path: root/commandline/micronucleus.c
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-02-18 13:21:23 +0100
committercpldcpu <cpldcpu@gmail.com>2014-02-18 13:21:23 +0100
commitb4bb399c5ca2e2ddd82b77d541ededac80585461 (patch)
tree467b3b41d4b103f356d0369938a3605a0b03aaf0 /commandline/micronucleus.c
parent9ffd24e4234ea9cbbbfcbe2bfcda249e682a33cb (diff)
downloadmicronucleus-b4bb399c5ca2e2ddd82b77d541ededac80585461.tar.gz
micronucleus-b4bb399c5ca2e2ddd82b77d541ededac80585461.tar.bz2
micronucleus-b4bb399c5ca2e2ddd82b77d541ededac80585461.zip
commandline: --no-ansi is default under windows. Ansi does not work
Diffstat (limited to 'commandline/micronucleus.c')
-rw-r--r--commandline/micronucleus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/commandline/micronucleus.c b/commandline/micronucleus.c
index 4ef829a..63abbb1 100644
--- a/commandline/micronucleus.c
+++ b/commandline/micronucleus.c
@@ -77,11 +77,11 @@ int main(int argc, char **argv) {
erase_only = 0;
fast_mode=0;
timeout = 0; // no timeout by default
- //#if defined(WIN)
- // use_ansi = 0;
- //#else
+ #if defined(WIN)
+ use_ansi = 0;
+ #else
use_ansi = 1;
- //#endif
+ #endif
while (arg_pointer < argc) {
if (strcmp(argv[arg_pointer], "--run") == 0) {
@@ -110,9 +110,9 @@ int main(int argc, char **argv) {
puts(" you encounter USB errors. ");
puts(" --run: Ask bootloader to run the program when finished");
puts(" uploading provided program");
- //#ifndef WIN
+ #ifndef WIN
puts(" --no-ansi: Don't use ANSI in terminal output");
- //#endif
+ #endif
puts(" --timeout [integer]: Timeout after waiting specified number of seconds");
puts(" filename: Path to intel hex or raw data file to upload,");
puts(" or \"-\" to read from stdin");