tinytools-vty: a terminal based unicode diagram editing tool

[ bsd3, graphics, library, program, tinytools ] [ Propose Tags ]
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.3, 0.1.0.4, 0.1.0.7
Change log ChangeLog.md
Dependencies aeson, aeson-pretty, ansi-terminal, base (>=4.7 && <5), bimap, bytestring, clock, constraints-extras, containers, data-default, dependent-map, dependent-sum, directory, extra, file-embed, filepath, http-conduit, ilist, lens, mtl, optparse-applicative, primitive, ref-tf, reflex (>=0.8 && <1), reflex-potatoes (>=0.1), reflex-test-host (>=0.1.2.2), reflex-vty, relude, semialign, template-haskell (>=2.18), text, these, time, tinytools (>=0.1), tinytools-vty, vty [details]
License BSD-3-Clause
Copyright 2020 Peter Lu
Author pdlla
Maintainer chippermonky@gmail.com
Category tinytools
Home page https://github.com/pdlla/tinytools-vty#readme
Bug tracker https://github.com/pdlla/tinytools-vty/issues
Source repo head: git clone https://github.com/pdlla/tinytools-vty
Uploaded by pdlla at 2023-04-05T02:22:42Z
Distributions
Executables write-term-width, tinytools-vty-exe
Downloads 163 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-04-05 [all 1 reports]

Readme for tinytools-vty-0.1.0.1

[back to package description]

tinytools-vty

tinytools-vty is a mono-space unicode diagram editor written in Haskell. It is currently a WIP and expect to have an beta release SOON.

This repository contains the vty based view/controller implementation built on top of the tinytools model.

running

cabal run tinytools-vty-exe

you may need to install ICU depuendencies to get things to compile

enabling unicode widechar support

NOT WORKING, WILL CRASH RANDOMLY IF YOU USE UNICODE WIDE CHARS 😨 (this is due to bugs in TextZipper module that I still need to fix)

Unicode character display width seems to vary by terminal so you will need to generate a unicode width table file in order to enable support for unicode wide characters. You can run tinytools-vty with the --widthtable arg to generate the table to your local config directory for the current terminal. Generating the table samples each unicode character inside the terminal and takes a few seconds to run. Please see the Graphics.Vty.UnicodeWidthTable module of the vty for more info.