Skip to content

nathanrpage97/lua-fort

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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