Interop/Compatability
SquidDev opened this issue · comments
Jonathan Coates commented
There should be an 'Interop' module. It would be great to run Howl in normal lua. We would need to override the file system and terminal:
- Terminal colours: AnsiColors
- File system LuaFileSystem
Lua file system
The functions can be found here
lfs.attributes
- This can be used forfs.exists
,fs.isDir
lfs.mkdir
- Replacement forfs.makeDir
lft.dir
- Replacement forfs.list
. Creates an iterator instead of a table though.- Pure lua IO -
fs.open
Terminal
- Cursor, clear - Escape sequences
- Scroll -
Nope, cannot be done.Also done via escape sequences - Colours - use AnsiColors (and Wikipedia)
Jonathan Coates commented
I'm going to use Penlight as much as possible. It is pretty much standard so it should be fine.