]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Partially implement the mysterious cons25 \e[x escape sequence.
authored <ed@FreeBSD.org>
Fri, 5 Nov 2010 00:56:21 +0000 (00:56 +0000)
committered <ed@FreeBSD.org>
Fri, 5 Nov 2010 00:56:21 +0000 (00:56 +0000)
commita834f8918cf280d072e604e4df49953dc3d19fce
tree77b23035d68c9f13e2721acbd3b9ff0634c42994
parentbfe6aa84f90b7b86c491748493b5b9859a78da97
Partially implement the mysterious cons25 \e[x escape sequence.

It seems the terminfo library on some systems (OS X, Linux) may emit the
sequence \e[x to reset to default attributes. Apart from using the
zero-command, this escape sequence allows many more operations, such as
setting ANSI colors. I don't see this used anywhere, so this should be
sufficient for now.

This deficiency was spotted by the Debian GNU/kFreeBSD. They have their
own patch, which is slightly flawed in my opinion. I don't know why they
never reported this issue to us.

MFC after: 1 week
sys/teken/sequences
sys/teken/teken_subr_compat.h