From b4bb399c5ca2e2ddd82b77d541ededac80585461 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Tue, 18 Feb 2014 13:21:23 +0100 Subject: commandline: --no-ansi is default under windows. Ansi does not work --- commandline/micronucleus.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'commandline') 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"); -- cgit v1.2.3