[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [ANN] mc^2
- From: Mooffie <mooffie@...>
- Date: Thu, 15 Oct 2015 19:13:55 +0300
mc^2 is a fork of Midnight Commander with Lua support:
...but let's skip the verbiage and go directly to the screenshots:
Now, I assume most of you here aren't users of MC.
So I won't bore you with description of how Lua makes MC a better
file-manager. Instead, I'll just list some details that may interest
any developer who works on extending some application.
And, as you'll shortly see, you may find mc^2 useful even if you
aren't a user of MC!
So, some interesting details:
* Programmer Goodies
- You can restart the Lua system from within MC.
- Since MC has a built-in editor, you can edit Lua code right there
and restart Lua. So it's somewhat like a live IDE:
- It comes with programmer utilities: regular expressions; global scope
protected by default; good pretty printer for Lua tables; calculator
where you can type Lua expressions; the editor can "lint" Lua code (and
flag uses of global variables).
- It installs a /usr/bin/mcscript executable letting you use all the
goodies from "outside" MC:
* User Interface programming (UI)
- You can program a UI (user interface) very easily. The API is fun
attach functions to events like on_click, on_change, etc. The API
uses "properties", so your code tends to be short and readable:
- The UI has a "canvas" object letting you draw your own stuff. The
system is so fast you can program arcade games. Pacman, Tetris,
Need timers in your game? You've got them:
- This UI API is an ideal replacement for utilities like dialog(1).
You can write complex frontends to command-line tools with ease:
- Thanks to the aforementioned /usr/bin/mcscript, you can run your
games/frontends from "outside" MC:
- You can compile it against Lua 5.1, 5.2, 5.3, or LuaJIT.
- Extensive documentation.