From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Using Emacs in fbterm. Date: Tue, 30 Aug 2022 14:32:51 +0300 Message-ID: <83r10yufto.fsf@gnu.org> References: <83czcjvtt2.fsf@gnu.org> <874jxu4zeg.fsf@igel.home> <87v8qa3k0b.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3849"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, schwab@linux-m68k.org, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 30 13:33:16 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oSzUa-0000nd-Fc for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Aug 2022 13:33:16 +0200 Original-Received: from localhost ([::1]:49924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSzUY-00016a-W0 for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Aug 2022 07:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzTp-0000Hp-QN for emacs-devel@gnu.org; Tue, 30 Aug 2022 07:32:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzTo-0007id-Fy; Tue, 30 Aug 2022 07:32:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hJYCfPQxtiUuRKzFx337HS5zPgJoHprIYi16/C0ykZs=; b=OGTAWhg+aWjY 6V34Q/uwnd+mAtOD0U1EF/G/zgT78OXX92vyJF4v90f4k9SdLM+9UXAUpZDpa9oltGCdnynzH4p/t UN8Po2hA+d+LE8NmBrzcnDEemC/GSPXFTW0FCD/Z2UHNPZYHyhFcH9uP+oHMrdyzwy8k7tNiuzaU7 /9C565r4G+qUCUbWG2Gzx36OcIZK3GfpxZ+DJZnkpeCrL56FF2F2P6gg24TCNu5qxCENhcWpf+eLL ZxFpOKHeOWXR0HYr9SGXsNQuNFIscI0rnl/S5MyJJbkHD5gSqwqlAT/k0ZMBomEX2L40IEl3xt21y KeQDxSAZDv8GdSgmM5q4Fw==; Original-Received: from [87.69.77.57] (port=2399 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSzTo-0000Pu-2p; Tue, 30 Aug 2022 07:32:28 -0400 In-Reply-To: (message from Gregory Heytings on Mon, 29 Aug 2022 22:28:43 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294330 Archived-At: > Date: Mon, 29 Aug 2022 22:28:43 +0000 > From: Gregory Heytings > cc: Andreas Schwab , Eli Zaretskii , > emacs-devel@gnu.org > > And here is a minimal patch to enable 256 colors under fbterm: > > diff --git a/lisp/term/fbterm.el b/lisp/term/fbterm.el > new file mode 100644 > index 0000000000..bf12b5ed97 > --- /dev/null > +++ b/lisp/term/fbterm.el > @@ -0,0 +1,9 @@ > +;;; fbterm.el -*- lexical-binding:t -*- > + > +(require 'term/xterm) > + > +(defun terminal-init-fbterm () > + "Terminal initialization function for fbterm." > + (xterm-register-default-colors xterm-standard-colors)) > + > +(provide 'term/fbterm) But since fbterm doesn't always announce itself as such, but instead calls itself "linux", this is not reliable enough, is it? > Eli, what else would you recommend to add in that file? I think > (tty-no-underline)? If it doesn't support underline, yes. > And how can I check whether compositions should be disabled, that > is, if they confuse cursor movement? There are some compositions in HELLO, and you can also try some long Emoji sequences.