SquidDev-CC / Howl

A CC build system

Home Page:http://www.computercraft.info/forums2/index.php?/topic/21254-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interop/Compatability

SquidDev opened this issue · comments

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:

Lua file system

The functions can be found here

  • lfs.attributes - This can be used for fs.exists, fs.isDir
  • lfs.mkdir - Replacement for fs.makeDir
  • lft.dir - Replacement for fs.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)

I'm going to use Penlight as much as possible. It is pretty much standard so it should be fine.