nathanrpage97 / lua-fort

A lua wrapper around the https://github.com/seleznevae/libfort library

Home Page:https://nathanrpage97.github.io/lua-fort/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua-fort

A lua wrapper around the libfort library.

Features

  • No external libraries required
  • Tiny implementation
    • Easy to integrate into an embedded lua environment
  • Resizes cells to content of tables
  • Cusomization of Appearance
    • Text colors
    • Border style
    • Background style
  • Different Methods of filling in the formatted table
  • UTF-8 support (More details)

The fort module directly maps the API from c to lua with the FT_*/ft_* prefixes.

Differences from libfort

  • No wchar support (Not needed for lua)
  • ft_printf/ft_printf_ln aren't used directly.
    • lua's string.format method is used to do formatting
    • String splitting on column separator is done in lua
  • all functions are UTF-8 compatible

Roadmap

There are a few things that I would like to add with lua fort. This list is in chronological order.

  • lua ≥ 5.1 support
  • CI testing across versions
  • Documentation site
  • UTF-8 support
  • Unit testing
  • Examples (from libfort)
  • First release on luarocks

About

A lua wrapper around the https://github.com/seleznevae/libfort library

https://nathanrpage97.github.io/lua-fort/

License:MIT License


Languages

Language:C 87.5%Language:Lua 12.3%Language:Shell 0.1%Language:Makefile 0.1%