From nobody Thu Nov 21 22:09:47 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 4XvXTS1Fxtz5dfZ8 for ; Thu, 21 Nov 2024 22:09:48 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvXTR6MfZz4HvQ for ; Thu, 21 Nov 2024 22:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732226987; 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: in-reply-to:in-reply-to:references:references; bh=k8u/fINuhf0hquy7ClEa9x74gXZt9jKjlb4ETEudkJo=; b=bvEbqLLYNP+xXhu+g6dtb5ubCPpFZZqPAcMMHI3YuQ8g2EMAsI5wLlZFqQSYQSZJJP1zch 43JKCpR/56vsZe+oLxjll8hS5dlvNhMLedrdaobDPPUx3uSQFgJwOY7YLEo2ZnLEr5DAKv kXY3g5FaygZRuwXbKXGeCbCWb7arkjh2gur2ZnTU6XM882JgXRRkicxNIhbYrHADW0vrPQ RBvk71uMsZfufs890JE+nmzV25bQBPhpyMXh8/rMGHFYp4TaL39aUVsxgq1LFrNDACFGXJ eKFp4zmNNnocALE2MsBNpQFBBGY8BSTo4a/O67VM4p+ZkHrDLrtr2F6YDj2cSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732226987; a=rsa-sha256; cv=none; b=u2dWMWomgLqcIiv0+bC8/lZ/qmFP5x6QVMihQbS/B4MSXCFDc9/sZMNTBzKXa9DJGH/7FC X7CWzLpxKYd6TopHfCsHlHj0Jr2G+lC7I+SaZtqp1VhSJRNvvDxKRblhxzXpaRZBI1DY8h x+0tK1V1VPbGz9n3WRQs2kBKu0q6RyXESX8ne07iTXR2IqOdzzeFqNb0AP8eiQr3w5KUvZ 4gO4iHGRGBEzCJCG2o00NU3Hyu1iuGF7mX5/QF97iVPBHE0gUUlnl93AdCFJEvYxYaWHGa fDmRwuluYczQPUFlQo/3C37tFFwHP0ic2nHwpR1VGI2JZQYFFQbsI76Q6vKQVg== 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 4XvXTR5fYRzxgP for ; Thu, 21 Nov 2024 22:09:47 +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 4ALM9lJp092578 for ; Thu, 21 Nov 2024 22:09:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ALM9lwT092577 for bugs@FreeBSD.org; Thu, 21 Nov 2024 22:09:47 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, 21 Nov 2024 22:09:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bapt@FreeBSD.org --- Comment #5 from Jan Beich --- (In reply to Cullum Smith from comment #4) > FreeBSD's terminfo seems to have a termcap compatibility layer ncurses in FreeBSD >=3D 14 enabled terminfo support (base 61f66a1f4403) but= due to POLA (backlash?) still uses homegrown termcap database by default. Users seeking advanced terminfo-only features (or Linux-style defaults) are expec= ted (base b75fb12b6827) to install misc/terminfo-db. CC @bapt as misc/terminfo-db looks barely documented anywhere. > special handling in 256-color mode. 0-7 are regular colors, compatible with vt100-color. 8-15 are bright colors, compatible with xterm-16color. From xterm-256color source: # This implementation uses a 256-element color map where the first 16 entri= es # are shared with the aixterm-compatible colors (and in turn the first 8 are # shared with the ANSI colors). The three levels (256, 16, 8) account for = the # use of a conditional expression in setaf/setab which reduces the number of # characters sent to the screen for typical applications. From xterm(1) manpage: boldColors (class ColorMode) Specifies whether to combine bold attribute with colors like the IBM PC, i.e., map colors 0 through 7 to colors 8 through 15. These normally are the brighter versions of the first 8 colors, hence bold. The default is "true". > setaf=3D\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, terminfo(5) manpage explains the syntax. Basically, 0-7 colors use \E[3m, 8-15 colors use \E[9m while the rest use \E[38;5;m $ tput setaf 6 | od -a 0000000 esc [ 3 6 m 0000005 $ tput setaf 14 | od -a 0000000 esc [ 9 6 m 0000005 $ tput setaf 22 | od -a 0000000 esc [ 3 8 ; 5 ; 2 2 m 0000012 --=20 You are receiving this mail because: You are the assignee for the bug.=