Jonathan Daugherty
3f04a3f3a2
Whitespace
2020-03-05 13:03:42 -08:00
Jonathan Daugherty
2732b1be08
mk_wcwidth.c: docs nit
2020-03-05 11:09:21 -08:00
Jonathan Daugherty
3cb9cfc6d8
mk_wcwidth.c: docs nit
2020-03-05 11:08:51 -08:00
Jonathan Daugherty
d8b33ab53e
mk_wcwidth.c: docs nit
2020-03-05 11:08:36 -08:00
Jonathan Daugherty
904a5b1040
mk_wcwidth.c: nit
2020-03-05 11:07:08 -08:00
Jonathan Daugherty
a247079058
mk_wcwidth.c: nit
2020-03-05 11:06:01 -08:00
Jonathan Daugherty
5435e8f8b3
mkRanges: caveat
2020-03-05 10:20:35 -08:00
Jonathan Daugherty
5ed59bb70d
Graphics.Vty.UnicodeWidthTable.Query: document mkRanges
2020-03-05 10:19:29 -08:00
Jonathan Daugherty
d0645568ef
README: edits
2020-03-05 09:48:41 -08:00
Jonathan Daugherty
ec81fc9c36
README: more width table content
2020-03-05 09:47:34 -08:00
Jonathan Daugherty
4340e45816
README: edits
2020-03-05 09:43:33 -08:00
Jonathan Daugherty
e1384c3266
README: add documentation on custom character width tables
2020-03-05 09:40:36 -08:00
Jonathan Daugherty
ea655ee90d
BuildWidthTable: fix bugs
2020-03-05 09:27:41 -08:00
Jonathan Daugherty
ba815c4995
cabal: remove stale comments
2020-03-05 09:23:28 -08:00
Jonathan Daugherty
f318856308
README: just remove defunct development notes section
2020-03-05 09:21:15 -08:00
Jonathan Daugherty
69ac506154
README: lots of edits and improvements
2020-03-05 09:19:55 -08:00
Jonathan Daugherty
32e6cab8f3
README: add feature bullet about width tables
2020-03-05 09:15:40 -08:00
Jonathan Daugherty
4e78cf806c
Config: add documentation for "widthMap" directive
2020-03-05 09:12:44 -08:00
Jonathan Daugherty
f1b7839875
Config: expose vtyConfigPath, vtyConfigFileEnvName
2020-03-05 09:04:49 -08:00
Jonathan Daugherty
0bea225b6d
Rename vty-build-table to vty-build-width-table, rename main source file
2020-03-05 08:39:16 -08:00
Jonathan Daugherty
4de0a40be0
Long line
2020-03-03 16:46:32 -08:00
Jonathan Daugherty
73950ca0de
Add missing conditional import
2020-03-03 16:26:23 -08:00
Jonathan Daugherty
c1e534b991
Naming nit
2020-03-03 16:18:32 -08:00
Jonathan Daugherty
e07f287d07
installUnicodeWidthTable: on range population failure, deallocate the custom table
2020-03-03 16:17:02 -08:00
Jonathan Daugherty
7845acd565
Add missing conditional imports
2020-03-03 16:05:54 -08:00
Jonathan Daugherty
124436e1de
installWidthTable: handle and log exceptions raised by readUnicodeWidthTable
2020-03-03 15:49:58 -08:00
Jonathan Daugherty
16d5f27832
installUnicodeWidthTable: improve documentation again
2020-03-03 13:13:41 -08:00
Jonathan Daugherty
36b72dc2ed
installUnicodeWidthTable: improve documentation
2020-03-03 13:12:18 -08:00
Jonathan Daugherty
1545df3207
UnicodeWidthTable: documentation improvements
2020-03-03 13:07:05 -08:00
Jonathan Daugherty
1352476439
Vty: improve docstring
2020-03-03 09:38:04 -08:00
Jonathan Daugherty
a3c009b69a
Haddock formatting fix
2020-03-03 09:34:57 -08:00
Jonathan Daugherty
00c42b6f34
Naming nit
2020-03-03 09:25:07 -08:00
Jonathan Daugherty
b212597194
Whitespace
2020-03-03 09:24:13 -08:00
Jonathan Daugherty
b7861b38a5
Whitespace
2020-03-03 09:23:49 -08:00
Jonathan Daugherty
092cca91ca
mkVty: clarify fallback behavior
2020-03-03 09:22:20 -08:00
Jonathan Daugherty
e3ccaa7675
mkVty: document table loading behavior
2020-03-03 09:21:25 -08:00
Jonathan Daugherty
ff8fd2dd32
Correct misspelling in allowCustomUnicodeWidthTables field name
2020-03-03 09:19:35 -08:00
Jonathan Daugherty
8ecdb953e4
Config: make allowCustomUnicodeWithTables more usable in Semigroup instance
2020-03-03 09:19:01 -08:00
Jonathan Daugherty
18ee5fe883
Whitespace
2020-03-03 09:16:04 -08:00
Jonathan Daugherty
ee1bf20c37
Whitespace
2020-03-03 09:13:25 -08:00
Jonathan Daugherty
11e0f2b0a2
Whitespace
2020-03-03 09:12:32 -08:00
Jonathan Daugherty
c4ab1e9b53
Whitespace
2020-03-03 09:11:56 -08:00
Jonathan Daugherty
59f90de8b2
Config: make Semigroup instance take disjunction of allowCustomUnicodeWithTables values
2020-03-03 09:06:23 -08:00
Jonathan Daugherty
9737f2b4ee
Config: add allowCustomUnicodeWithTables to control whether a custom table load is ever attempted
2020-03-02 16:25:06 -08:00
Jonathan Daugherty
9edfd029cb
mkVty: automatically load a custom unicode width table if one is available and configured
2020-03-02 14:40:20 -08:00
Jonathan Daugherty
21d75153c1
isCustomTableReady: translate C integer to Haskell Bool
2020-03-02 14:40:07 -08:00
Jonathan Daugherty
bd07727819
BuildUnicodeTable: print out configuration advice after finishing
2020-03-02 14:27:05 -08:00
Jonathan Daugherty
b73efb4b73
Config: support specifying character width map paths
...
This change adds a new Config record field, termWidthMaps, which holds a
list of pairs that map terminal names to width table file paths.
This change also extends the configuration parser to support lines of
the form
widthMap <Terminal> <Path>
where <Terminal> must be a double-quoted string literal indicating the
value of TERM for which the specified map should be active, and <Path>
must be a double-quoted string literal specifying the file path to the
width table file to use. E.g.,
widthMap "xterm" "/home/user/.vty/width_table_xterm.dat"
2020-03-02 14:24:36 -08:00
Jonathan Daugherty
e882198035
Graphics.Vty.Config: add and export currentTerminalName function
2020-03-02 14:24:14 -08:00
Jonathan Daugherty
771dee8ae1
Remove stale import
2020-03-02 14:15:07 -08:00