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.bugs Subject: bug#62265: Underline does not work in Terminal Emacs Date: Sun, 19 Mar 2023 14:24:19 +0200 Message-ID: <83r0tl9bf0.fsf@gnu.org> References: <87wn3ex8ik.fsf@kisara.moe> <83edpmaqrs.fsf@gnu.org> <7cf462de-97f7-26ef-a33f-e3ff59c8b55e@gmail.com> <87mt49jbql.fsf@kisara.moe> <83v8ix9dlh.fsf@gnu.org> <87r0tlm01a.fsf@kisara.moe> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, 62265@debbugs.gnu.org To: Mohsin Kaleem , Mike Hamrick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 19 13:25:28 2023 Return-path: Envelope-to: geb-bug-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 1pds6J-0009Eo-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Mar 2023 13:25:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pds5v-0008O1-GT; Sun, 19 Mar 2023 08:25:03 -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 1pds5u-0008Ns-RY for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pds5u-0005yR-Hb for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pds5u-0001SK-6Q for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Mar 2023 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62265 X-GNU-PR-Package: emacs Original-Received: via spool by 62265-submit@debbugs.gnu.org id=B62265.16792286615528 (code B ref 62265); Sun, 19 Mar 2023 12:25:02 +0000 Original-Received: (at 62265) by debbugs.gnu.org; 19 Mar 2023 12:24:21 +0000 Original-Received: from localhost ([127.0.0.1]:49604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pds5E-0001R6-RY for submit@debbugs.gnu.org; Sun, 19 Mar 2023 08:24:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pds5D-0001Qq-HE for 62265@debbugs.gnu.org; Sun, 19 Mar 2023 08:24:19 -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 1pds57-0005sy-FU; Sun, 19 Mar 2023 08:24:13 -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=mP16TZYAeWOFja9zjn1lrrOSP+BsT61TjZ94GgT8A9g=; b=Ysa3ach9rZSx 81NdpoGQEp1A1rcaoyLRh1dqMfj6QDbeiLk1arArUjyy2SJfrMmzUB+lYfx5601E1il2vd3QMv9T2 dP7Ndaq2M0/uUdkFDIF7Ph+djULqfMPM8vFVaW73iGSHRoeegUcsn45dE1OuqJW5RjGkc4gIZc7B2 sKP9BoNQ/Hl0cJQNCJFeB7Tq5+2NkKvwpKBdRRpJv7Kv9Q6FyyQihfkb6wTDR16TAjp5jm5S1JMDn OZUPQ7qbqLmXMhSCHGbZrZRw5xyeeqqhUQrHEu5aXaEGURLf1FYYjYsgLW45MGP9qfNUPCjTLNs7x jIMhbLRLyxOpGKFkaELXhg==; Original-Received: from [87.69.77.57] (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 1pds56-00026K-U2; Sun, 19 Mar 2023 08:24:13 -0400 In-Reply-To: <87r0tlm01a.fsf@kisara.moe> (message from Mohsin Kaleem on Sun, 19 Mar 2023 11:51:45 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258233 Archived-At: > From: Mohsin Kaleem > Cc: jporterbugs@gmail.com, 62265@debbugs.gnu.org > Date: Sun, 19 Mar 2023 11:51:45 +0000 > > Eli Zaretskii writes: > > > However, what about the non-TERMINFO branch? Do termcap databases > > support this capability and tigetstr? I wonder whether we should do > > one of the following: > > > > . support "smxx" only when TERMINFO is defined > > . support "smxx" regardless of whether TERMINFO is defined > > The latter wouldn't be possible for those using terminfo because of the > issue I described before. I'm okay with the former approach but I > imagine the author of the original TTY strikethrough patch was building > Emacs without terminfo and they described the patch as working for them > so I'd have to conclude termcap does support this (in a non-compliant > ncurses way). Switching to the former approach might break their > workflow since if they build without terminfo they'd lose strikethrough > altogether. I'm happy to test whether this would be the case but not > sure how to. The difference between termcap and terminfo seem kinda > arbitrary to me and I can't find any documentation describing the exact > difference (except this sort of 2 letter restriction in termcap > extensions). If your hypothesis is correct, I'm fine with leaving the non-TERMINFO branch using tgetstr. But is it indeed correct? Let's ask the author of that strikethrough patch. Mike, can you tell whether you tested the patch on a system with or without terminfo? And what, if anything, can you tell about using tgetstr for capabilities whose names are more than 2 characters -- is that supported with the curses library you were using at the time? Thanks.