freeswitch/libs/esl
Travis Cross 323a3d617c Avoid output of junk text by fs_cli
In some cases where `redisplay()` is called immediately after a
command is run (e.g. `log ...`) we often get a prompt, junk output,
and a second prompt.  This is due to a (known) race.

We believe we're falling afoul of this code in `el_deletestr`:

    if (el->el_line.cursor < &el->el_line.buffer[n])
            return;

Basing the length of text to delete off of the cursor position
resolves the issue of junk text, but the real solution is to eliminate
the race conditions, which will also resolve the sometimes duplicated
prompt.

FS-6764 #resolve

Thanks-to: Nathan Neulinger <nneul@neulinger.org>
2014-08-26 20:18:22 +00:00
..
getopt
java
lua
managed
perl
php
python
ruby
src
tcl
.gitignore
ESL.i
Makefile.am
eslmake.rules.in
fs_cli.2008.vcproj
fs_cli.2010.vcxproj
fs_cli.2010.vcxproj.filters
fs_cli.2012.vcxproj
fs_cli.2012.vcxproj.filters
fs_cli.c
fs_cli.conf
fs_cli.rc
ivrd.c
switch_version.rc2
test.pl
testclient.c
testserver.c
testserver_fork.c