On Friday 21 March 2014 10:52:41 Raphaël Mouneyres wrote: > hello, > > i've been using the LSCP shell yesterday, and it has been of a great > help, especially the command history.
The LSCP shell is still work in progress.
I made some progress, my planned basic features are roughly done, but I had so
far no time to finish it up. There are still some minor issues to be solved.
But right now I have no time for spare time projects.
> >when you're in a command history, you have to use the delete key, you
> >cannot use the left arrow to change some parameter on a long line.
Moving the cursor position with left/right key is actually implemented in
latest SVN version. Are you using the latest one (1.0.0.svn37)?
> >autocompletion on command parameters display a list of available
> >commands/sub-commands on double-tab (depending on what has previously
> >been greened)
>
> as a first shot, you could display the message that is printed when
> you enter an incomplete command "....expecting.....should be....."
I implemented that somewhat different than other shells do: there is no need
for double tab. The next token(s) are automatically shown next to your command
line in different color, showing you immediately all possibilities you have
while typing, without requiring you to trigger any special key (see attached
screen shot). It not only lists you keywords, but also so called "non
terminals" like "number", "digit" which may be required to for the current
command line position, for example for "GET CHANNEL INFO <number>".
Plus in latest SVN version, the relevant LSCP reference document section is
automatically displayed below the command line, as soon as it is obvious which
LSCP command you mean. It shows you the general syntax of the LSCP command you
are currently typing, plus detailed descriptions about that specific LSCP
command. However the following issues have yet to be solved for this
particular feature:
1. The document section is not displayed 100% correctly. For example
sometimes there is no gap between two words, and some HTML encoding
of
the source document (lscp.xml) is not yet transformed into normal
ASCII text.
2. There is a bug, that sometimes causes the encoded document info sent
by the LSCP server to be displayed by the LSCP shell directly on
screen, as it was a regular response to a command the user types.
3. The document section shall actually only be displayed partly, for
example it should not cover more than 25% of the current terminal
height or something, if it would cover more it should be cutted and
instead be scrollable with some keys, i.e. page up and page down
keys.
However I am not yet sure about the keys, because a Mac for example
does not have page up/down keys. Preferably keys shall be defined
that
exist on all major systems.
CU
Christian
<<attachment: lscp_shell_1_0_0_svn37.jpg>>
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ Linuxsampler-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel
