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: Question regarding tty special glyphs display defaults Date: Wed, 09 Oct 2024 15:44:17 +0300 Message-ID: <86ed4p4fa6.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Gerd =?iso-8859-1?Q?M=F6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 09 14:45:26 2024 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 1syW4D-0006sZ-RQ for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Oct 2024 14:45:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syW3G-0007tZ-HU; Wed, 09 Oct 2024 08:44:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syW3F-0007jO-0v for emacs-devel@gnu.org; Wed, 09 Oct 2024 08:44:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syW3B-0005oC-9s; Wed, 09 Oct 2024 08:44:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XdWRSPAn6ShFxh5m4mYuWNrSpBCVmqZPuHEOGCVydPk=; b=hia+QgsbVpAumzO3+XpQ vxTZRHKadbDLCL2X5tW85lW+xfK67g/O6aJc/MwDDceRVhIt8N1u1azvPgDTz3NUUAsiVM7Zz6d4E tGG3lE7XrNvm8JV34vdDTRMjVny7ib403duXMRRV25ipKnBFbBe6HfAiLvbmikb6dGN8GmWZ4F2mc cucLL2r5agW4hqZmcgh3qT4zz+QzkeB/EdDFi1ZSBSzH77UwXs3BejP0r41Q3SbZt8fsnGfwWE1Sq p10psF08j0uzSR0Yb2isMikTgtnGdAvLD22FrQ6Z/afzQ/kKB2jzszsCBc4Rsb1wSXDrDYoJ4Vm4n pADTgNaSWBBEsQ==; In-Reply-To: (message from Gerd =?iso-8859-1?Q?M=F6llmann?= on Wed, 09 Oct 2024 06:24:35 +0200) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324438 Archived-At: > From: Gerd Möllmann > Date: Wed, 09 Oct 2024 06:24:35 +0200 > > Problem is that I find the default ASCII chars being used ugly as hell, > at least the ones for vertical-border and the new ones for the borders > of child frames. The truncation...selective-display glyphs are kind of > okay for my personal taste. > > I'm pondering if we could change the defaults to Unicode box drawing > chars falling back to the ASCII chars if the terminal output coding > system isn't Unicode. > > Q1: WDYT? Using Unicode (or non-ASCII in general) on text terminals is problematic, because we need to establish whether a character is supported before using it, and text terminals differ wildly in that aspect. We have char-displayable-p, but it is not 100% reliable (except if you are on the Linux console, for which we have special support), so using this by default is not reliable, either. Why cannot this be left to user customizations, leaving the ("ugly as hell") ASCII characters as the default, since those are reliably displayed? > Q2: if the answer is positive, how the heck does one write a function > like is_unicode (struct coding_system *)? I don't understand why you need this. Please tell more (or maybe char-displayable-p is the answer you were looking for, without actually asking it ;-).