From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fatiparty--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: min-colors 88 Date: Fri, 28 Jan 2022 13:53:10 +0100 (CET) Message-ID: References: <83sft9e6sz.fsf@gnu.org> <83r18tdxd3.fsf@gnu.org> <83bkzxdoba.fsf@gnu.org> <871r0tf21u.fsf@zoho.eu> <83zgngcmgy.fsf@gnu.org> <83y230ccsr.fsf@gnu.org> Reply-To: fatiparty@tutanota.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37706"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 28 14:49:38 2022 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 1nDRdC-0009bN-94 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Jan 2022 14:49:38 +0100 Original-Received: from localhost ([::1]:51942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDRdB-0003Hq-8B for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Jan 2022 08:49:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDQkc-0005qc-SD for help-gnu-emacs@gnu.org; Fri, 28 Jan 2022 07:53:17 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:47452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDQkb-0005E0-7w; Fri, 28 Jan 2022 07:53:14 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id EC215FA0D1F; Fri, 28 Jan 2022 12:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643374390; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=uYlKBKwaUAbaWLI3vkyJ4TYHtbNCK5KxiAUiHHj5yRk=; b=Log9ALfICqSV7NNcCf5avHhI2pK8sJ/j22lFn7rEN4cOMmyUWsd1YCkzDLKyT795 Ww1m6S8Ze9e3fGE/B7Y0L2CBZx9Rb1/TdTJoGKoF6nRyETYNyBxv2MoyzfyGF2vHvpO ttLLs8YMvSIiBJpoIZc+E96opXM5vVPGhlqBvpyqnjpgBLrnzuuq9gi7/y89I33MgbJ 3lzMKm/QqB9ry6t084/Bvvn26Mqp7G0iQagFEXL8JKQARFj3tj8RVR5elO+QKHKt15z SoloI7LPPzebQapIoLJd793rXT14ioqBosOu0cUqN0n/De0jXSY4IQmE6XVb20yBZdx q+KZeJvZ3A== In-Reply-To: <83y230ccsr.fsf@gnu.org> Received-SPF: pass client-ip=81.3.6.162; envelope-from=fatiparty@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:135594 Archived-At: Jan 28, 2022, 23:36 by eliz@gnu.org: >> Date: Fri, 28 Jan 2022 09:59:34 +0100 (CET) >> From: fatiparty@tutanota.com >> Cc: Help Gnu Emacs >> >> Jan 28, 2022, 20:07 by eliz@gnu.org: >> >> >> I could then come up with a hex-code where the colour in not=C2=A0 su= pported. >> >> >> > >> > There's no such thing when colors on TTY frames are considered: >> > Emacs automatically and transparently finds the closest color that is >> > supported, and uses that. >> > >> For 8-Bit=C2=A0 (2^8=3D256) there are defined 16 (Basic) + 6=C3=976=C3= =976 (Cube) + 24 (Grey) >> >> What's the situation for 24-bit RGB Codes? >> > > What do you mean by "defined" in this context? > > The colors "defined" for TTY frames are set up in tty-colors.el, and > they don't depend on the number of colors that the terminal actually > supports. > Looking at tty-colors.el, a 16-bit values is being used for each of the thr= ee colours=20 (R[0-65535] , G[0-65535] , B[0-65535]).=C2=A0 Giving more possibilities tha= n 24-bit total values (with 8-bit values for each of the three colours. tty-color-define (w32console.el) passes each supported color, its index, an= d its RGB values. In tty-color-define, each one of the RGB components is a number between 0 a= nd 65535 (16bit). But unsure how many get passed to tty-color-define.=C2=A0 There is nothing = specified in the .c files about this. =20