Commit Graph

24 Commits

Author SHA1 Message Date
Aniket Teredesai bb460d221d add tcell's dim text style 2022-07-01 09:22:23 +05:30
Carson McManus 93ddcf4615 fix font modifiers test coverage and style nitpicks 2020-11-17 08:33:36 -05:00
Carson McManus eea25385e4 add remaining font modifiers: strikethrough, inverse, blink 2020-11-16 00:45:21 -05:00
Jakub Sobon 503c0ada52
Fixing color setting for `tcell`.
Our tcell library incorrectly referenced tcell color values rather than
just names. The values aren't part of the public API and did change with
the update to v2.

This commit switches our tcell library to using the public constants
exported by the `tcell` project.

Also aligning our color definition of the first 16 colors with `tcell`
and Xterm. Adding two additional colors to make this change backward
compatible with `termbox-go`.
2020-11-14 23:21:07 -05:00
Jakub Sobon e5e1397ce9
Adding test coverage to cell options. 2020-11-14 00:39:44 -05:00
“Carson 50310f4d29 add font modifier cell options: bold, italic, underline. 2020-11-12 15:54:58 -05:00
Jakub Sobon 984f37245d
Factoring private type buffer out of cell. 2019-02-24 16:29:44 -05:00
Jakub Sobon b74f46509b
Moving runewidth, segdisp and testdraw to internal. 2019-02-24 01:27:17 -05:00
Jakub Sobon 97ec73069f
Moving align, cell and terminalapi back from internal. 2019-02-24 01:13:26 -05:00
Jakub Sobon 7ee222ac58
Moving private libraries into internal subdirectory. 2019-02-23 21:09:38 -05:00
Jakub Sobon f1a83ecd22
Adding licences. 2019-02-22 00:10:48 -05:00
Jakub Sobon 102e098dac
Updating CHANGELOG.
And fixing a lint error.
2019-02-22 00:04:08 -05:00
Jakub Sobon 3b2abce00b
Defining exceptions to the East Asian ambiguous cell width. 2019-02-21 23:59:31 -05:00
Jakub Sobon 793925feb8
Migrating all calls to the runewidth wrapper. 2019-02-21 23:24:42 -05:00
Jakub Sobon 43e15c302e
A wrapper over the external runewidth package. 2019-02-21 23:24:30 -05:00
Jakub Sobon 2071fd15bb
Support for 256 colors.
- Documenting color modes.
- Providing helper functions to set colors in different formats.
- Allowing users to set other than the 8 system colors.

Fixes #66
2019-01-13 21:53:26 -05:00
Jakub Sobon 1c17cb36f2
Updated doc as per comment. 2018-06-04 16:16:51 +01:00
Jakub Sobon 0049acbd01
Full-width rune support in the cell buffer.
- don't allow partial overwrite of a full-width rune.
- don't allow placement of a full-width rune if it doesn't fit.
- allow callers to also read from the canvas (read-only).
2018-05-20 22:47:37 +01:00
Jakub Sobon 79218c9233
Fixing lint errors.
- Missing comments.
- Invalid comments.
- Stuttering public name.
2018-05-11 16:32:37 +01:00
Jakub Sobon 2cd3343c81 Adding licences and a script to automate the same. 2018-04-14 23:06:57 +01:00
Jakub Sobon dc1f2c5a29
Implementing canvas functionality.
Done here:
- adding helper library which determines area from size and vice versa.
- fixing an off-by-one bug related to area sizes.
- allowing overwrite of cell options by passing an existing cell.Options
instance.
- implementing canvas and its tests.
2018-03-29 03:28:36 +03:00
Jakub Sobon 59e1bd6472
Implementing cell, buffer, container options and fake terminal.
Push after a partial commit to prevent data loss.
This isn't complete and doesn't have complete test coverage.
2018-03-28 21:34:20 +03:00
Jakub Sobon 53fe40fcec
Naive implementation of the terminalapi using the termbox library.
This just wraps termbox, getting Events isn't supported yet.

Also adding an experimental.
2018-03-27 20:20:05 +01:00
Jakub Sobon bc42865277
Defining the APIs. 2018-03-27 19:01:35 +01:00