Ok, I just committed an initial version of the LSCP shell to SVN. The 
application is just called "lscp". There is also a man page.

I decided to go the thin-client route, that is LSCP aware stuff being handled 
on sampler side, and the shell application is more or less just forwarding 
individual key strokes to the sampler and handling output format (color & 
printing) of the returned informations on the command line terminal. That 
should make the shell be versatile for being used successfully against various 
LinuxSampler versions, no matter what the exact LSCP version is, and keeps 
development/maintenance effort low.

Current shell features:

        - Colored highlighting while typing (i.e. good portions bold white, 
          syntactical bad portions red, if the command is complete and ready to 
          be fired: green, ...).

        - Auto completion by tab key. The shell will also show a possible 
          completion in real-time while typing. So that one does not need to 
          guess when it is possible to tab-complete the command. You see it 
          immediately.

        - Auto correction of trivial mistakes: for now this just covers auto 
          converting i.e. lower case characters to upper case (if necessary, 
          according to current LSCP grammar position), space characters to 
          underscore characters and vice versa (also according to grammar 
          position).
          In future: orthographically similar mistyped keywords might be auto 
          corrected as well. Not a hard task.

I actually also planned to integrate the LSCP reference into the shell. That 
is, if a certain LSCP command is identified, the shell would automatically 
show the relevant LSCP reference document section below the current command 
line (and paging the shown LSCP reference with PGUP, PGDOWN keys).

However ... I have now to work on completely other stuff for a while, so this 
spare time fun is postponed for now.

The Windows version of LinuxSampler is currently broken, because I used the 
POSIX termios API to get the required control over the command line terminal. 
That API does not exist on Windows. If anybody is interested in trying to fix 
this on Windows, it would be very much appreciated!

That's it for now.

CU
Christian

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to