|
From: | Matthew Hebley |
Subject: | Re: [Help-nano] How to change nano background color |
Date: | Wed, 4 Nov 2015 10:40:15 +1300 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 30/10/15 09:22, Benno Schulenberg wrote:You are right.On Thu, Oct 29, 2015, at 20:48, Matthew Hebley wrote:I (believe I) compiled it from nano-3.4.1.tar.gz.2.4.1, you mean. :) Think I upgraded to get colours (syntax formatting) working. They do work, except for the background.Can't remember the reason I upgraded. Maybe I should try 2.4.2, or try to revert to the original Apple version.Trying to revert to the original Apple version is the first thing I would try. Then you'll maybe remember why you upgraded. :) The original version is maybe even still there. Type 'type -a nano' and see what it says. If you have three nanos, and the first is /usr/local/bin/nano, then the other two are most likely the originally installed version. I was OK to use it as is (with a black background), but viewing iOS file (*.m) uses a dark font (e.g. for the include file name). So I wanted to fix/change the background. However, switching from the shell background appears to be a bug rather than a setting. > /usr/bin/nano --version GNU nano version 2.0.6 (compiled 16:25:25, Sep 9 2014) Email: address@hidden Web: http://www.nano-editor.org/ Compiled options: --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8 Version 2.0.6 (from Apple) works as expected, except for a bunch of errors reading the rc files (that I have installed for syntax formatting). Error in /usr/local/share/nano/sh.nanorc on line 4: Command "header" not understood Error in /usr/local/share/nano/sh.nanorc on line 5: Command "magic" not understood Error in /usr/local/share/nano/sh.nanorc on line 6: Command "linter" not understood Press Enter to continue starting nano. Version 2.3.2, 2.3.3, and 2.4.2 all behave the same as 2.4.1 (black background).If the original version behaves the way you want, backgroundwise, then compile and run 2.3.2 and 2.3.3, and see how each of those behaves. (You don't have to install them; you can run them in their source tree with 'src/nano'.) Then please report back. ~/Install/Nano/nano-2.3.2/> src/nano README Error in /usr/local/share/nano/go.nanorc on line 45: Command "formatter" not understood Error in /usr/local/share/nano/python.nanorc on line 5: Command "linter" not understood Error in /usr/local/share/nano/ruby.nanorc on line 5: Command "linter" not understood Error in /usr/local/share/nano/sh.nanorc on line 6: Command "linter" not understood Error in /usr/local/share/nano/tex.nanorc on line 4: Command "linter" not understood Press Enter to continue starting nano. Version 2.2.6 works as expected, except for a bunch of errors reading the rc files (that I have installed for syntax formatting). ~/Install/Nano/nano-2.2.6/> src/nano ~/MoreController.m Error in /usr/local/share/nano/asm.nanorc on line 4: Command "magic" not understood Error in /usr/local/share/nano/awk.nanorc on line 4: Command "magic" not understood : : : Blue.What is your default background colour for the terminal? I will use 2.2.6 and try to figure out how to get rid of the warnings. Thank you for your assistance. Matt Here is the output from building version 2.4.2 in case it helps you. ~/Install/Nano/nano-2.4.2/> less README ~/Install/Nano/nano-2.4.2/> ./configure checking build system type... x86_64-apple-darwin14.5.0 checking host system type... x86_64-apple-darwin14.5.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking whether ln -s works... yes checking for strerror in -lcposix... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for pkg-config... /opt/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for msgfmt... /opt/local/bin/msgfmt checking for gmsgfmt... /opt/local/bin/msgfmt checking for xgettext... /opt/local/bin/xgettext checking for msgmerge... /opt/local/bin/msgmerge checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for shared library run path origin... done checking whether NLS is requested... yes checking for GNU gettext in libc... no checking for iconv... yes checking how to link with libiconv... -liconv checking for GNU gettext in libintl... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking whether to enable UTF-8 support... auto checking whether to use slang... no checking for getdelim... yes checking for getline... yes checking for isblank... yes checking for strcasecmp... yes checking for strcasestr... yes checking for strncasecmp... yes checking for strnlen... yes checking for snprintf... yes checking for vsnprintf... yes checking for iswalnum... yes checking for iswblank... yes checking for iswpunct... yes checking for iswspace... yes checking for nl_langinfo... yes checking for mblen... yes checking for mbstowcs... yes checking for mbtowc... yes checking for wctomb... yes checking for wcwidth... yes checking whether C compiler accepts -Wall... yes checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for getopt_long... yes checking for NCURSESW... yes Using ncursesw as the curses library checking for use_default_colors in -lncursesw... no checking for GNU-style word boundary regex support... no checking whether _XOPEN_SOURCE_EXTENDED is needed... no checking whether LINES and COLS can be redefined... yes checking for magic.h... no checking for zlib.h... yes checking for magic_open in -lmagic... no checking for inflate in -lz... yes checking for HTML support in groff... yes checking for makeinfo... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating doc/nanorc.sample config.status: creating doc/man/Makefile config.status: creating doc/man/fr/Makefile config.status: creating doc/syntax/Makefile config.status: creating doc/texinfo/Makefile config.status: creating m4/Makefile config.status: creating po/Makefile.in config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: creating nano.spec config.status: creating config.h config.status: executing depfiles commands config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile ~/Install/Nano/nano-2.4.2/> make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in doc Making all in man /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive make[5]: Nothing to be done for `all-am'. Making all in texinfo /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for `all-am'. Making all in syntax make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all-am'. Making all in m4 make[2]: Nothing to be done for `all'. Making all in po make[2]: Nothing to be done for `all'. Making all in src gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT browser.o -MD -MP -MF .deps/browser.Tpo -c -o browser.o browser.c browser.c:660:26: warning: shift count >= width of type [-Wshift-count-overflow] if (st.st_size < (1 << 40) || (1 << 40) == 0) ^ ~~ browser.c:660:39: warning: shift count >= width of type [-Wshift-count-overflow] if (st.st_size < (1 << 40) || (1 << 40) == 0) ^ ~~ 2 warnings generated. mv -f .deps/browser.Tpo .deps/browser.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT chars.o -MD -MP -MF .deps/chars.Tpo -c -o chars.o chars.c mv -f .deps/chars.Tpo .deps/chars.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c mv -f .deps/color.Tpo .deps/color.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT cut.o -MD -MP -MF .deps/cut.Tpo -c -o cut.o cut.c mv -f .deps/cut.Tpo .deps/cut.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT files.o -MD -MP -MF .deps/files.Tpo -c -o files.o files.c mv -f .deps/files.Tpo .deps/files.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.c mv -f .deps/global.Tpo .deps/global.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT help.o -MD -MP -MF .deps/help.Tpo -c -o help.o help.c mv -f .deps/help.Tpo .deps/help.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT move.o -MD -MP -MF .deps/move.Tpo -c -o move.o move.c mv -f .deps/move.Tpo .deps/move.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT nano.o -MD -MP -MF .deps/nano.Tpo -c -o nano.o nano.c mv -f .deps/nano.Tpo .deps/nano.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT prompt.o -MD -MP -MF .deps/prompt.Tpo -c -o prompt.o prompt.c mv -f .deps/prompt.Tpo .deps/prompt.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT rcfile.o -MD -MP -MF .deps/rcfile.Tpo -c -o rcfile.o rcfile.c mv -f .deps/rcfile.Tpo .deps/rcfile.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT search.o -MD -MP -MF .deps/search.Tpo -c -o search.o search.c mv -f .deps/search.Tpo .deps/search.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT text.o -MD -MP -MF .deps/text.Tpo -c -o text.o text.c mv -f .deps/text.Tpo .deps/text.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c mv -f .deps/utils.Tpo .deps/utils.Po gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -I/opt/local/include -g -O2 -Wall -MT winio.o -MD -MP -MF .deps/winio.Tpo -c -o winio.o winio.c mv -f .deps/winio.Tpo .deps/winio.Po gcc -g -O2 -Wall -o nano browser.o chars.o color.o cut.o files.o global.o help.o move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o -lz -L/opt/local/lib -lncurses make[2]: Nothing to be done for `all-am'. ~/Install/Nano/nano-2.4.2/> sudo make install Password: Making install in doc Making install in man /Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive make[5]: Nothing to be done for `install-exec-am'. ../.././install-sh -c -d '/usr/local/share/doc/nano' /usr/bin/install -c -m 644 nano.1.html rnano.1.html nanorc.5.html '/usr/local/share/doc/nano' ../.././install-sh -c -d '/usr/local/share/man/man1' /usr/bin/install -c -m 644 nano.1 rnano.1 '/usr/local/share/man/man1' ../.././install-sh -c -d '/usr/local/share/man/man5' /usr/bin/install -c -m 644 nanorc.5 '/usr/local/share/man/man5' Making install in texinfo /Applications/Xcode.app/Contents/Developer/usr/bin/make install-am make[4]: Nothing to be done for `install-exec-am'. ../.././install-sh -c -d '/usr/local/share/info' /usr/bin/install -c -m 644 ./nano.info '/usr/local/share/info' install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/nano.info' Making install in syntax make[3]: Nothing to be done for `install-exec-am'. ../.././install-sh -c -d '/usr/local/share/nano' /usr/bin/install -c -m 644 asm.nanorc awk.nanorc changelog.nanorc cmake.nanorc c.nanorc css.nanorc debian.nanorc default.nanorc elisp.nanorc fortran.nanorc gentoo.nanorc go.nanorc groff.nanorc guile.nanorc html.nanorc java.nanorc _javascript_.nanorc json.nanorc lua.nanorc makefile.nanorc man.nanorc mgp.nanorc mutt.nanorc nanorc.nanorc objc.nanorc ocaml.nanorc patch.nanorc perl.nanorc php.nanorc po.nanorc postgresql.nanorc pov.nanorc python.nanorc ruby.nanorc sh.nanorc spec.nanorc tcl.nanorc tex.nanorc texinfo.nanorc xml.nanorc '/usr/local/share/nano' make[3]: Nothing to be done for `install-exec-am'. .././install-sh -c -d '/usr/local/share/doc/nano' /usr/bin/install -c -m 644 faq.html '/usr/local/share/doc/nano' Making install in m4 make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. Making install in po if test "nano" = "gettext"; then \ /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/share/gettext/po; \ for file in Makefile.in.in Makevars remove-potcdate.sin quot.sed boldquot.sed address@hidden address@hidden insert-header.sin Rules-quot ; do \ /usr/bin/install -c -m 644 ./$file \ /usr/local/share/gettext/po/$file; \ done; \ else \ : ; \ fi Making install in src .././install-sh -c -d '/usr/local/bin' /usr/bin/install -c nano '/usr/local/bin' /Applications/Xcode.app/Contents/Developer/usr/bin/make install-exec-hook cd /usr/local/bin && rm -f rnano && ln -s nano rnano make[2]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. ~/Install/Nano/nano-2.4.2/> which nano /usr/local/bin/nano ~/Install/Nano/nano-2.4.2/> nano --version GNU nano, version 2.4.2 (C) 1999..2015 Free Software Foundation, Inc. Email: address@hidden Web: http://www.nano-editor.org/ Compiled options: --disable-libmagic --disable-nls --enable-utf8 ~/Install/Nano/nano-2.4.2/> |
[Prev in Thread] | Current Thread | [Next in Thread] |