<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/teken, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-08T16:44:42Z</updated>
<entry>
<title>vt: Fix handling of backtab</title>
<updated>2026-02-08T16:44:42Z</updated>
<author>
<name>Nathaniel Braun</name>
<email>nathaniel.braun@gmail.com</email>
</author>
<published>2026-01-17T17:14:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5fec99caff3ac4f476bb88078ebf85fbecf6afb3'/>
<id>urn:sha1:5fec99caff3ac4f476bb88078ebf85fbecf6afb3</id>
<content type='text'>
PR: 292463
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2002
</content>
</entry>
<entry>
<title>Typo: brig(h)tness</title>
<updated>2024-09-11T08:35:46Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2024-09-11T08:35:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8652bc8a994bb5afea110e6ee15f21ec26259837'/>
<id>urn:sha1:8652bc8a994bb5afea110e6ee15f21ec26259837</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>teken: fix style in teken_wcwidth.h</title>
<updated>2023-10-13T05:14:57Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2023-10-13T05:14:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=90367ba750bcbf3f9ac4609c3ec8df4ab95a22af'/>
<id>urn:sha1:90367ba750bcbf3f9ac4609c3ec8df4ab95a22af</id>
<content type='text'>
Reviewed by:	bojan.novkovic_fer.hr
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D42164
</content>
</entry>
<entry>
<title>tty/teken: fix UTF8 sequence validation logic</title>
<updated>2023-10-13T05:14:36Z</updated>
<author>
<name>Bojan Novković</name>
<email>bojan.novkovic@fer.hr</email>
</author>
<published>2023-10-13T05:14:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2fed1c579c52d63b72fc08ffcc652ba0183f9254'/>
<id>urn:sha1:2fed1c579c52d63b72fc08ffcc652ba0183f9254</id>
<content type='text'>
This patch fixes UTF-8 sequence validation logic in
teken_utf8_bytes_to_codepoint() and fixes fallback behaviour in
ttydisc_rubchar() when an invalid UTF8 sequence is encountered. The code
previously used __bitcount() to extract sequence length information from
the leading byte. However, this assumption breaks for certain code
points that have additional bits set in the first half of the leading
byte (e.g. Cyrillic characters). This lead to incorrect behaviour when
deleting those characters using backspaces. The code now checks the
number of consecutive set bits in the leading byte starting from the
MSB, as per RFC 3629.

Reviewed by:	christos
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D42147
</content>
</entry>
<entry>
<title>teken: fix up unused func warnings</title>
<updated>2023-10-08T13:54:11Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2023-10-08T13:54:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4b9aa38ef0e5bedcdd90b6627cc1c215037a1121'/>
<id>urn:sha1:4b9aa38ef0e5bedcdd90b6627cc1c215037a1121</id>
<content type='text'>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>teken: use __bitcount() instead of bitcount()</title>
<updated>2023-10-07T21:36:59Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2023-10-07T21:36:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d3296f16a06bcaa49918799e683936711dcf9c9'/>
<id>urn:sha1:6d3296f16a06bcaa49918799e683936711dcf9c9</id>
<content type='text'>
The use of bitcount() triggered a build error because it couldn't be
located. __bitcount() on the other hand is defined in sys/types.h, which
is included in teken/teken.h.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>tty: fix improper backspace behaviour for UTF8 characters when in canonical mode</title>
<updated>2023-10-07T18:00:11Z</updated>
<author>
<name>Bojan Novković</name>
<email>bojan.novkovic@fer.hr</email>
</author>
<published>2023-10-07T18:00:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9e589b0938579f3f4d89fa5c051f845bf754184d'/>
<id>urn:sha1:9e589b0938579f3f4d89fa5c051f845bf754184d</id>
<content type='text'>
This patch adds additional logic in ttydisc_rubchar() to properly handle
backspace behaviour for UTF-8 characters.

Currently, typing in a backspace after a UTF8 character will delete only
one byte from the byte sequence, leaving garbled output in the tty's
output queue. With this change all of the character's bytes are deleted.
This change is only active when the IUTF8 flag is set (see
19054eb6053189144aa962b2ecc1bf5087758a3e "(s)tty: add support for IUTF8
input flag")

The code uses the teken_wcwidth() function to properly handle character
column widths for different code points, and adds the
teken_utf8_bytes_to_codepoint() function that converts a UTF-8 byte
sequence to a codepoint, as specified in RFC3629.

Reported by:    christos
Reviewed by:    christos, imp
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D42067
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line nroff pattern</title>
<updated>2023-08-16T17:55:06Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9e7892125655e7f86b7c52d2c4f67ee64eac6fe2'/>
<id>urn:sha1:9e7892125655e7f86b7c52d2c4f67ee64eac6fe2</id>
<content type='text'>
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:54:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=031beb4e239bfce798af17f5fe8dba8bcaf13d99'/>
<id>urn:sha1:031beb4e239bfce798af17f5fe8dba8bcaf13d99</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
</feed>
