From owner-freebsd-questions@freebsd.org Mon Oct 19 10:00:16 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F09CA192D5 for ; Mon, 19 Oct 2015 10:00:16 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0767A1889 for ; Mon, 19 Oct 2015 10:00:15 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id t9JA05aI030835 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Oct 2015 12:00:05 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id t9JA05Rn030832; Mon, 19 Oct 2015 12:00:05 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Mon, 19 Oct 2015 12:00:05 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Niklaas Baudet von Gersdorff cc: FreeBSD Questions Subject: Re: Wrong colors in weechat (ssh+tmux): ncurses causes the problem? In-Reply-To: <5624AFB5.7010400@kulturflatrate.net> Message-ID: References: <5624AFB5.7010400@kulturflatrate.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 10:00:16 -0000 On Mon, 19 Oct 2015 10:54+0200, Niklaas Baudet von Gersdorff wrote: > Weechat displays wrong colors on my FreeBSD server. > > I assume that it's related to ncurses since testing the 256 colours in a > regular shell + tmux works fine. Somewhere I read (I don't have the link > at hand right now) that once there was a option for devel/ncurses to > build it with 256 colours but the option was dropped. > > Is it that ncurses now supports 256 colours by default or do I have to > tweak something somewhere? Maybe you're missing the environment variable TERM=xterm-256color or the value appropriate for tmux. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Mon Oct 19 10:13:20 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F605A196FF for ; Mon, 19 Oct 2015 10:13:20 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from mail2.kulturflatrate.net (mail2.kulturflatrate.net [IPv6:2a01:4f8:121:52ad::3:1]) by mx1.freebsd.org (Postfix) with ESMTP id 3E10B1ECD for ; Mon, 19 Oct 2015 10:13:19 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from [10.10.10.146] (mail.kulturflatrate.net [IPv6:2a01:488:66:1000:2ea3:77dd:0:1]) (Authenticated sender: niklaas@kulturflatrate.net) by mail2.kulturflatrate.net (Postfix) with ESMTPSA id 3A362E264; Mon, 19 Oct 2015 12:13:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kulturflatrate.net; s=default; t=1445249596; bh=m6FS8MlykG6mwJZVZE9X6Of5q0FYItoCcZFB9aqwMIc=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=YeSTIKWSY77Kr6igygtW48SrdyWvEnHfKeGhpMC/E6ey1v8vobm9mUiRQE4lOATn9 RnadCyapvYXmEdLzeXcahKLVCbvXSlf40PVI3ZtHgveHcXHAp7G7hsemOi6etjEwPQ VOxOnVIQxqcBpJ7uM8/yUkvfE647d/xRSiCP9+KA= Subject: Re: Wrong colors in weechat (ssh+tmux): ncurses causes the problem? To: =?UTF-8?Q?Trond_Endrest=c3=b8l?= References: <5624AFB5.7010400@kulturflatrate.net> Cc: FreeBSD Questions From: Niklaas Baudet von Gersdorff Message-ID: <5624C2D2.9020700@kulturflatrate.net> Date: Mon, 19 Oct 2015 12:15:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 10:13:20 -0000 On 19/10/15 12:00, Trond Endrestøl wrote: > Maybe you're missing the environment variable TERM=xterm-256color or > the value appropriate for tmux. This is run in tmux: $ echo $TERM screen-256color which should be fine. Running a test script in tmux which tests for 256 colours works fine. I thought about asking this on weechat's list but on a Debian machine with the same tmux+weechat configuration everything works fine. -- Niklaas