summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormongo <mongo@iomega>2016-09-28 16:53:47 -0300
committermongo <mongo@iomega>2016-09-28 16:53:47 -0300
commit164bbb963546d7c61b3e371585f4b181ec06087e (patch)
treeca9e7d9a8f9793ec30ddb0a5073ed4377a698a1d
parented17f2ed734272a32966bc93bdaf70bdc4602d38 (diff)
Fix colors of sc_info messages when using background other than black
-rw-r--r--src/file.c1
-rw-r--r--src/main.c3
-rw-r--r--src/screen.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/file.c b/src/file.c
index 581275e..5f285ba 100644
--- a/src/file.c
+++ b/src/file.c
@@ -734,6 +734,7 @@ int import_csv(char * fname, char d) {
//if (isnumeric(st) && strlen(st) && token[strlen(st)-1] != '-' && token[strlen(st)-1] != '.') { // FIXME do a proper isnumeric function !!
// swprintf(line_interp, BUFFERSIZE, L"let %s%d=%s", coltoa(c), r, st);
//} else {
+ //sc_debug("%s", st);
swprintf(line_interp, BUFFERSIZE, L"label %s%d=\"%s\"", coltoa(c), r, st);
//}
send_to_interp(line_interp);
diff --git a/src/main.c b/src/main.c
index 8c78057..213022c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -180,8 +180,9 @@ int main (int argc, char ** argv) {
// we show welcome screen if no spreadsheet was passed to SC-IM
// and no input was sent throw pipeline
+ do_welcome();
if ( ! curfile[0] && ! wcslen(stdin_buffer)) {
- do_welcome();
+ //do_welcome();
// show mode and cell's details in status bar
show_celldetails(input_win);
diff --git a/src/screen.c b/src/screen.c
index 3a5331c..a394f5c 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -125,10 +125,10 @@ void do_welcome() {
// function that refreshes grid of screen
void update(int header) {
- #ifdef USECOLORS
+ //#ifdef USECOLORS
//wbkgd(main_win, COLOR_PAIR(ucolors[DEFAULT].fg * 8 + ucolors[DEFAULT].bg + 1));
//wbkgd(input_win, COLOR_PAIR(ucolors[DEFAULT].fg * 8 + ucolors[DEFAULT].bg + 1));
- #endif
+ //#endif
if (loading) return;
if (cmd_multiplier > 1) return;
if (atoi(get_conf_value("nocurses"))) return;