Browse Source

Merge branch 'unicode' into bfgminer

Luke Dashjr 12 years ago
parent
commit
fe58f8e6d4
2 changed files with 7 additions and 1 deletions
  1. 1 0
      README
  2. 6 1
      miner.c

+ 1 - 0
README

@@ -223,6 +223,7 @@ Options for both config file and command line:
 --temp-hysteresis <arg> Set how much the temperature can fluctuate outside limits when automanaging speeds (default: 3)
 --temp-target <arg> Target temperature when automatically managing fan and clock speeds
 --text-only|-T      Disable ncurses formatted screen output
+--unicode           Use Unicode characters in TUI
 --url|-o <arg>      URL for bitcoin JSON-RPC server
 --user|-u <arg>     Username for bitcoin JSON-RPC server
 --verbose           Log verbose output to stderr as well as status output

+ 6 - 1
miner.c

@@ -291,7 +291,7 @@ short default_bgcolor = COLOR_BLACK;
 
 static
 #if defined(HAVE_CURSES) && defined(USE_UNICODE)
-bool use_unicode = true;
+bool use_unicode;
 static
 bool have_unicode_degrees;
 #else
@@ -1725,6 +1725,11 @@ static struct opt_table opt_config_table[] = {
 	OPT_WITH_ARG("--thread-concurrency",
 		     set_thread_concurrency, NULL, NULL,
 		     "Set GPU thread concurrency for scrypt mining, comma separated"),
+#endif
+#ifdef USE_UNICODE
+	OPT_WITHOUT_ARG("--unicode",
+	                opt_set_bool, &use_unicode,
+	                "Use Unicode characters in TUI"),
 #endif
 	OPT_WITH_ARG("--url|-o",
 		     set_url, NULL, NULL,