From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: Re: [REQ]Light/dark toggle for terminal emacs Date: Fri, 04 Sep 2020 10:00:12 +0200 Message-ID: <87y2lqx983.fsf@no.workgroup> References: <834koeuili.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13275"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 10:02:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE6fw-0003LJ-Hz for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 10:02:24 +0200 Original-Received: from localhost ([::1]:49794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE6fv-00015m-BJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 04:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE6dz-00015a-JF for help-gnu-emacs@gnu.org; Fri, 04 Sep 2020 04:00:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:33291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE6dx-0000pu-JF for help-gnu-emacs@gnu.org; Fri, 04 Sep 2020 04:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599206417; bh=SJs80G2zObecuH53iLyXvB1CAleRu+0+TM7cbj0zWwY=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=REIj31JDz99vcx7SuIAAiWl4csAV58CJUKbZ/x4vdgm9tbs2gpBqNj1BrEP1Todwz 3OMT3nruS6MzLvji6mcOXfPIaaSm7YYUO3KAzIEN7xqZx6krsVPonwWT+1We+0hIRu ER9w5IA7HdCM2cwShkUGVjVt3Ri3h9NojxKa3TUk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from no.workgroup ([46.94.159.137]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFsYx-1kM2L03UWV-00HSUD; Fri, 04 Sep 2020 10:00:17 +0200 In-Reply-To: <834koeuili.fsf@gnu.org> Mail-Followup-To: help-gnu-emacs@gnu.org X-Provags-ID: V03:K1:XAzL+3nDAHIRbe3f/f62Y16Hfe0guVM0ZqOf0BiwBp5XffGRo9i xd+7maPTnLOkwsMyqlSQDH7rRBmcVZPUkAO1UuaQOwBk16XMLW/CjHS2BhHVqtUjOgKX/x8 gVd6Fz2bx3k2MsolSgKFR3ATHqc5ciBFdSHhzWK2Db/DUBKh6euNmWsGNEuiGQzYo25htaX lcPE49TMOqBuFI4KD7V4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:RtLm8G8Nkik=:ZQ3yVHRaZXzOsbuSTg2zAJ 5agvd9INTTrgmiYebmCY1NmIORKCvsUMoMSBt3qpsqZJXH1UlH9J+z70JSwuOzwGsc/VXpJxO VLr8Dw5XpNV1sIG0Mu1BqcAfWpKYrU8rRDmnbPOmv65GOaOUF9oYrO5IUiqAs9BL6UqYA53wk ox1okhC+KqyxrX30AfbBErdIzklfr4Zq5Gfxged1/mG0GekdJAq+Rs53RTrJ9XDklGqrZOhmG MZrcYQgYYz7QaQYywz+tswCeMViacGlZnK3uv+D4Nye9FXAl6inZxWiYQ9HBhdkVftGGWS/AN AVazXoP4u1ADAqHH+i7qIKwm3BrN6YJM5TK2QgNBAIPeyH5KADUGr2MVeUTePxV+w9o7shT0L lfKPZ9I7Y/unS7h4xUszsB1lHyBxtYtxh9IRhrWA+qeLzsxgHzGrm2Ct6Ln/vOOaNgfLVS1h6 LJIqPUSjzV4LqnPsyqtFNWS87zybJ4UQ0j9HsO1OcazdIOxYQR0BTPMXCPVNrJE89mK7nlZJp 9UtG1dFBwpvBZ8nmpaskLCnHMMUSbrnNtP3VBSSKov4xzqPiDj3O0Yxy/mtmD1RSJK7ScC4pm RKZ2heSoD7rE44u06iIy5pVurs/GB3ogQ9I26WtlIlICF4xYNRhfwM3snv9ahJ3nV0jaUSM86 HBXA3LYu9GCREzZoNytHcbfgCeAaXcyjZrV8q1YmCZ9QjqGCzrVY3+U2rAW/DX3bQ8hTMS4pG B3RhgALA+lieya/dmfAN89/OmgyEz9iIqSAoR7J4WGKB1m4SIcX0DhO4MPsv6vcKQz8Mumld Received-SPF: pass client-ip=212.227.17.22; envelope-from=telegraph@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 04:00:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123953 Archived-At: Hi Eli, Steve, emacs users, * Eli Zaretskii [2020-09-04; 10:06]: >> From: Steve Greenburg >> Date: Thu, 3 Sep 2020 20:00:46 +0000 >> >> I was using emacs -nw in a terminal the other day and >> noticed that only the tsdh-light theme was able to give >> me a light background/dark text out of all the themes in >> etc/themes. This was a freebsd terminal where the default >> term has limited colors, and tsdh-light was the only >> theme that didn't check for a minimum of 80 something >> colors. It wasn't great but it was much more readable, >> and faster than setting -fg or -bg on the command line. >> >> I think it would be a good idea to have a menu option in >> terminal emacs at least to toggle light/dark for easy of >> editing. My vision is impaired and I work best with light >> terminals most of the time. Probably the Options menu >> before Multilingual Environment. Someone said >> (invert-face 'default) can do this but I don't expect a >> casual user on bsd or otherwise would know about >> this. Possibly a command line option like -light or -dark >> might also work. > > There's a command-line option -rv, did you try it? nice, I didn't know, this is for X though. I have this in my .Xdefaults: !; provide inverse video URxvt.keysym.M-plus: command:\033]11;15\007\033]10;0\007 !; provide normal video URxvt.keysym.M-numbersign: command:\033]11;0\007\033]10;15\007 this allows me to select normal or inverse video within urxvt with ALT++ and ALT+# respectively. But this works only with rvxt-unicode as terminal emulator. Actually I don't use it any more, because other configurations I have made, provide colours and this does not work well in reverse video. Ciao; Gregor =2D- -... --- .-. . -.. ..--.. ...-.-