sys: Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
sys: Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas an
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas and introduced a WARNS=7 and wanted to try lifting the default tothat.Drop most of them; there is one in the blake2 kernel module, but I suspectit should be dropped -- the default WARNS in the rest of the build doesn'tcurrently apply to kernel modules, and I haven't put too much thought intowhether it makes sense to make it so.
show more ...
My recent fix for programmable function keys in syscons only workedwhen TEKEN_CONS25 is configured. Fix this by adding a function toset the flag that enables the fix and always calling this functi
My recent fix for programmable function keys in syscons only workedwhen TEKEN_CONS25 is configured. Fix this by adding a function toset the flag that enables the fix and always calling this functionfor syscons.Expand the man page for teken_set_cons25(). This function is notvery useful since it can only set but not clear 1 flag. In practice,it is only used when TEKEN_CONS25 is configured and all that does ischoose the the default emulation for syscons at compile time.
Pedantic polishing of code to please FlexeLint.Approved by: ed
Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-colorcodes. This will be used to fix bright colors.Improve teken_256to8(). Use a lookup table instead of calculations. Thec
Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-colorcodes. This will be used to fix bright colors.Improve teken_256to8(). Use a lookup table instead of calculations. Thecalculations were inaccurate since they used indexes into the xterm-2566x6x6 color map instead of actual xterm colors. Also, change the thresholdfor converting to a primary color: require the primary's component to be2 or more higher instead of just higher. This affects about 1/5 of thetable entries and gives uniformly distributed colors in the 6x6x6 submapexcept for greys (35 entries each for red, green, blue, cyan, brown andmagenta, instead of approx. only 15 each for the mixed colors). Evenmore mixed colors would be better for matching colors, but uniformdistribution is best for preserving contrast.For teken_256to16(), bright colors are just the ones with luminosity >=60%. These are actually light colors (more white instead of moresaturation), while xterm bright colors except for white itself areactually saturated with no white, so have luminosity only 50%.These functions are layering violations. teken cannot do correctconversions since it shouldn't know the color maps of anything exceptxterm. Translating through xterm-16 colors loses information. Thisgives bugs like xterm-256 near-brown -> xterm-16 red -> VGA red.
mdoc: improvements to SEE ALSO.
Fix whitespace inconsistencies found in homegrown Symbol.maps.
Fix various whitespace inconsistencies in sys/teken.
mdoc: reorder sections consistently
Add proper build infrastructure for teken.I'm not sure whether we should install teken as a library on any stockFreeBSD installation, but I can imagine people want to tinker aroundwith it now and
Add proper build infrastructure for teken.I'm not sure whether we should install teken as a library on any stockFreeBSD installation, but I can imagine people want to tinker aroundwith it now and then. Create a /sys/teken/libteken, which holds aMakefile to install a shared library version of the terminal emulator,complete with a manpage.Also add Makefiles for the demo/stress applications, to build it againstthe shared library.