From: Rui Guo Date: Wed, 3 Jun 2009 04:08:00 +0000 (+0800) Subject: Update the design document a little. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/8d474e2c028bbbd76411c8355ade97ee9b400e28 Update the design document a little. 1. Change the screen command interface as suggested by Sadrul. 2. Add an input() interface to the Screen object. 3. A short description about binding. --- diff --git a/src/drafts/scripting b/src/drafts/scripting index a440e69..a126906 100644 --- a/src/drafts/scripting +++ b/src/drafts/scripting @@ -52,7 +52,7 @@ II. The Screen interface Screen needs to provide a user interface to source and run scripts. -sourcescript [-async|-a] [-binding|-b ] script. +script source [-async|-a] [-binding|-b ] script. This command sources the specified script. This command can be used several times to source multiple scripts. Use the -async switch if the @@ -64,7 +64,7 @@ sourcescript [-async|-a] [-binding|-b ] script. scripts may share the same context. (Note: the isolation between scripts may be implementation dependent. Which is more desirable?) -scriptcall func arg1 arg2 ... +script call func arg1 arg2 ... Call functions defined by scripts. If the same function are defined in multiple scripting context, the last one applies. Call to normal script @@ -254,11 +254,19 @@ displays command windowbyname +input +get input from user. + =================== The Implementation =================== +Bindings are in fact script interpretors. We can have several different +language bindings at the same time, with each registered at the compiling time +and loaded (initialized) dynamically at runtime. It's an bridge between +scripts and screen itself. + --------------- Binding related. ---------------