From nobody Thu Aug 08 00:10:45 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WfS9x3TMrz5TPZ6 for ; Thu, 08 Aug 2024 00:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WfS9x0MQfz40wm for ; Thu, 8 Aug 2024 00:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723075845; a=rsa-sha256; cv=none; b=gg/Ah9tPQoQg7o1plr3GP2NwJoMxZSHF82HhMpgE1mzwZuC/ancv+eUc3NQ9VgPTx/hDOn gl/zvRj9vAzXquptzWt55bJH0SRgFBaF78X7VqRqcYkW6rDIm4vz2+Xt3v/0UeYgksbozH tqgn3GkUS4wu/Op7esnNhEEYKWVZz0ktteKiRPqF+n5JAJiJ90iOocvsbYFaVOSbGf/EXV M8eaHgrUTvRG9somr+RNdWSMugkXteSkXB+bm3PAZq99SNio/hOJVVNcWinhLW8yWULSVK 44Q7UxNakLSDQqap3h4NKoBlGJKjs1ECUC7RLsa2DpQhIP5cuz622nLmYk7+Xg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723075845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G0Cmpr4GEf83oUvYa2b7uaOdNXBUrFK5l7auLUmJta0=; b=sgXlS1ypeqxzTDTNCLcxm4yvI3OrsPWDDo1jhSGPUeQh+7VwvWN62mUlNlGwwPc4odDM9h 1UFwK3972M5aBvhgxCMcdw9fhwB5sTzoXKQx/o9e9iJIhGDkBUA2btPu3hewJ1fXKSv+uc eyS2xdmDgaNWQ0WN9w+ajQxsVIzG44fDF1OjoS7W3BPNMMru+FuqoI4iOZau4mTr1CPkdK jJf6NkePIVNw82XKwa4H18X/12qnTLnNFanfu2OHLNU90CRgjjulMXYFtnvF1Dtvzfb2k/ VQjUOHLbgcBe859XIcLerwEMzdW3ZSqB3MUrzw23ArsS7eWMU4DuhDdMlc+atA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WfS9w74tWz19kv for ; Thu, 8 Aug 2024 00:10:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4780AiBN050405 for ; Thu, 8 Aug 2024 00:10:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4780Ai6Z050404 for bugs@FreeBSD.org; Thu, 8 Aug 2024 00:10:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280679] [termcap] [patch] bold colors broken in ncurses apps for xterm-256color Date: Thu, 08 Aug 2024 00:10:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cullum@sacredheartsc.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280679 Bug ID: 280679 Summary: [termcap] [patch] bold colors broken in ncurses apps for xterm-256color Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: cullum@sacredheartsc.com Created attachment 252599 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252599&action= =3Dedit remove AB=3D and AF=3D values from xterm-256color termcap entry I noticed that when setting my TERM environment variable to xterm-256color,= the bright (bold) xterm colors (color9-color14) no longer worked for ncurses ap= ps in Xterm. I found this old Usenet post which seems to imply that some Linux distros m= ade a similar patch to their termcap databases long ago: https://tmux-users.narkive.com/o6kjUfcW/bold-colours-and-xterm-256color#pos= t10 The attached patch for /etc/termcap allows the "bright" colors to display properly in ncurses apps again. To reproduce: 1. Install profanity (xmpp ncurses app): pkg install profanity 2. In an XTerm, run `TERM=3Dxterm-256color profanity` 3. At the profanity prompt, type `/theme colours` and press 4. Notice that the "bold_" colors are rendered with the same color as the non-bold colors. To apply the fix: 1. Apply the attached patch to /etc/termcap 2. Run `cap_mkdb -f /usr/share/misc/termcap /etc/termcap` 3. Repat the above steps in profanity and notice that the bold colors are n= ow displayed properly. --=20 You are receiving this mail because: You are the assignee for the bug.=