delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/24/05:17:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=CzW8fxYOccjj6kVVsQ5/P7bKjtkt/
jPBr6HnMNaHAHVNzYUBJ37PJbRtjqiGRT9GK25fUfWRoIuhmuKErV7wWA0uQo2Zh
NrIF5EgrlLNYJRua5ICGDrks9ReRVObhkUqzNmQUxu/ekUIf79J1mY1dUf4yzoLJ
/cnxQd26OWkZpA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=OyVhHesYL3bdZwfDVLTAUbi+CKw=; b=btQ
LcRn8Tjf+oIJiBVBaXpMDz4x/iWLYD3v459RUQWa/dBRXG6rZVYVHtn8Ri/dGy7E
BTYH/pcVpkqnVMskxTZN0dykMor8kGZzC6Qi+qC9H+uGEHjpJl5vprAiB3gUHaP2
iU7NTWo7gAGFT5Skty86xC+lA9QKX1nAPV6Y1RtM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-vk0-f46.google.com
MIME-Version: 1.0
X-Received: by 10.31.2.205 with SMTP id 196mr16551665vkc.34.1445678205503; Sat, 24 Oct 2015 02:16:45 -0700 (PDT)
Date: Sat, 24 Oct 2015 17:16:45 +0800
Message-ID: <CAFLqW4Nk3bKOGzB=gPu3zSGKPWbtV-yyrZY4zc+OK2Rw0b9y8w@mail.gmail.com>
Subject: Best way to 256 color support on Vim+Tmux+Mintty when toggling light/dark background
From: kuaf <kuaf DOT lee AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

Hi list,

I want a perfect Vim edit environment based on Pencil theme [1].
Toggle light/dark background without Tmux, it looked well.
The configuration involved:
- .bashrc, add custom Pencil theme by way of `echo -ne ...`
- .bashrc,  `export TERM=xterm-256color`
- .vimrc, add
    set t_Co=256
    colorscheme pencil

Even there's no problem when toggling the light/dark background.

However, toggling background looks horrible if under Tmux session,
with additional .tmux.conf that had:

    set -g default-terminal "xterm-256color"

I didn't use `set -g default-terminal "screen-256color"` because it
buggy the color render.

I am expecting who had a perfect solution for the problem?




[1]: https://github.com/reedes/https://github.com/reedes/vim-colors-pencil

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019