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 building (almost working) on windows again 2008-12-23 22:52:52 +00:00
java FS-5723 java makefile problem 2014-02-22 18:33:56 -06:00
lua FS-5575 --resolve 2013-07-12 14:43:18 -05:00
managed Fix line endings per .gitattributes 2014-08-08 15:24:42 +00:00
perl FS-6604: fix this same issue in esl too 2014-06-17 12:10:47 -05:00
php first 1/2 of automake for esl phpmod 2014-03-21 16:01:35 -05:00
python FS-5575 --resolve 2013-07-12 14:43:18 -05:00
ruby ESL-89: fix install path and single_command require 2014-04-07 15:26:13 -05:00
src windows fix for a0e9ddf589 2014-06-08 16:06:32 -05:00
tcl reswig 2014-03-21 14:57:13 -05:00
.gitignore Update gitignore 2014-04-05 07:57:05 +00:00
ESL.i fix esl sendevent issue and change the sendEvent method to return the reply text like sendRecv etc 2010-03-05 23:10:41 +00:00
Makefile.am fix name of fs_ivrd 2014-05-22 16:41:21 -04:00
eslmake.rules.in Pass down into esl the LDFLAGS, fixes finding libncurses on NetBSD too. 2014-03-05 06:21:53 -06:00
fs_cli.2008.vcproj FSCORE-546 2010-02-04 22:21:23 +00:00
fs_cli.2010.vcxproj FS-5167 fix 2010 dependency 2013-04-15 11:46:23 -05:00
fs_cli.2010.vcxproj.filters FS-5167 add version stuff to vs2010 2013-04-09 18:12:47 -05:00
fs_cli.2012.vcxproj FS-5167 fs_cli update dependency 2013-04-10 10:23:46 -05:00
fs_cli.2012.vcxproj.filters FS-5167 2013-04-08 21:17:02 -05:00
fs_cli.c Avoid output of junk text by fs_cli 2014-08-26 20:18:22 +00:00
fs_cli.conf tweak 2008-12-31 19:14:52 +00:00
fs_cli.rc FS-5167 2013-04-08 21:17:02 -05:00
ivrd.c FS-6368 --resolve include signal.h in ivrd.c 2014-03-17 20:24:28 -05:00
switch_version.rc2 FS-5167 2013-04-08 21:17:02 -05:00
test.pl add disconnect method and check in ivrd 2009-03-23 19:55:02 +00:00
testclient.c wrong week to quit sniffing glue 2010-12-16 12:17:02 -06:00
testserver.c add user_data in esl_listen so the main function can pass a private user_data to callback 2014-02-16 08:14:44 +08:00
testserver_fork.c add user_data in esl_listen so the main function can pass a private user_data to callback 2014-02-16 08:14:44 +08:00