teken.3 (9e7892125655e7f86b7c52d2c4f67ee64eac6fe2) teken.3 (8652bc8a994bb5afea110e6ee15f21ec26259837)
1.\" Copyright (c) 2011 Ed Schouten <ed@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 165 unchanged lines hidden (view full) ---

174Other layers (hardare and software) that only support 16 colors can use
175this to avoid knowing the details of 256-color codes.
176.Pp
177The
178.Fn teken_256to8
179function is similar to
180.Fn teken_256to16
181except it converts to an ANSI 8-color code.
1.\" Copyright (c) 2011 Ed Schouten <ed@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 165 unchanged lines hidden (view full) ---

174Other layers (hardare and software) that only support 16 colors can use
175this to avoid knowing the details of 256-color codes.
176.Pp
177The
178.Fn teken_256to8
179function is similar to
180.Fn teken_256to16
181except it converts to an ANSI 8-color code.
182This is more accurate than discarding the brigtness bit in the result of
182This is more accurate than discarding the brightness bit in the result of
183.Fn teken_256to16 .
184.Pp
185The
186.Fn teken_get_defattr_cons25
187function obtains the default terminal attributes as a pair of foreground
188and background colors, using ANSI color numbering.
189.Pp
190The

--- 57 unchanged lines hidden ---
183.Fn teken_256to16 .
184.Pp
185The
186.Fn teken_get_defattr_cons25
187function obtains the default terminal attributes as a pair of foreground
188and background colors, using ANSI color numbering.
189.Pp
190The

--- 57 unchanged lines hidden ---