aboutsummaryrefslogtreecommitdiff
path: root/sys/teken/libteken
Commit message (Collapse)AuthorAgeFilesLines
* Pedantic polishing of code to please FlexeLint.Poul-Henning Kamp2018-04-081-5/+5
| | | | | | | Approved by: ed Notes: svn path=/head/; revision=332297
* Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-colorBruce Evans2017-03-161-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | codes. This will be used to fix bright colors. Improve teken_256to8(). Use a lookup table instead of calculations. The calculations were inaccurate since they used indexes into the xterm-256 6x6x6 color map instead of actual xterm colors. Also, change the threshold for converting to a primary color: require the primary's component to be 2 or more higher instead of just higher. This affects about 1/5 of the table entries and gives uniformly distributed colors in the 6x6x6 submap except for greys (35 entries each for red, green, blue, cyan, brown and magenta, instead of approx. only 15 each for the mixed colors). Even more mixed colors would be better for matching colors, but uniform distribution 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 more saturation), while xterm bright colors except for white itself are actually saturated with no white, so have luminosity only 50%. These functions are layering violations. teken cannot do correct conversions since it shouldn't know the color maps of anything except xterm. Translating through xterm-16 colors loses information. This gives bugs like xterm-256 near-brown -> xterm-16 red -> VGA red. Notes: svn path=/head/; revision=315418
* mdoc: improvements to SEE ALSO.Joel Dahl2014-12-271-1/+1
| | | | Notes: svn path=/head/; revision=276292
* Fix whitespace inconsistencies found in homegrown Symbol.maps.Ed Schouten2011-10-071-1/+1
| | | | Notes: svn path=/head/; revision=226111
* Fix various whitespace inconsistencies in sys/teken.Ed Schouten2011-06-261-1/+1
| | | | Notes: svn path=/head/; revision=223574
* mdoc: reorder sections consistentlyUlrich Spörlein2011-06-021-16/+16
| | | | Notes: svn path=/head/; revision=222600
* Add proper build infrastructure for teken.Ed Schouten2011-05-093-0/+280
I'm not sure whether we should install teken as a library on any stock FreeBSD installation, but I can imagine people want to tinker around with it now and then. Create a /sys/teken/libteken, which holds a Makefile 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 against the shared library. Notes: svn path=/head/; revision=221698