Travis Cross
a2d6a041eb
fs_cli: ask less of the terminal; fix ctrl-l behavior
2011-09-24 03:07:34 +00:00
Travis Cross
fe60938686
fs_cli: exclude last character in buffer on redisplay
2011-09-23 22:40:02 +00:00
Travis Cross
682ed52cf7
fs_cli: do not assume that LineInfo buffers are null-terminated
...
man editline(3el) says that they're not.
[take #2 , originally was 48acc0cd38
]
2011-09-23 22:24:58 +00:00
Travis Cross
4dbd950d70
fs_cli: be a bit more defensive
2011-09-23 21:44:55 +00:00
Travis Cross
7bcd1fe79e
fs_cli: handle cursor positioning better
2011-09-23 21:25:42 +00:00
Travis Cross
0571e81a4b
Revert "fs_cli: do not assume that LineInfo buffers are null-terminated"
...
This reverts commit 48acc0cd38
.
2011-09-23 17:42:54 +00:00
Travis Cross
991b83d23c
fs_cli: use buffered printers
2011-09-23 17:14:28 +00:00
Travis Cross
481e71970f
fs_cli: style
2011-09-23 16:58:41 +00:00
Travis Cross
6724d7af97
fs_cli: clear the CLI before inserting function key commands
2011-09-23 01:25:43 +00:00
Travis Cross
d410c84336
fs_cli: vanity
2011-09-23 01:25:43 +00:00
Travis Cross
c7ec19d6f0
fs_cli: implement configurable prompt, input, and output coloring
...
In .fs_cli_conf, set:
prompt-color => blue
input-text-color => red
output-text-color => yellow
2011-09-23 01:25:43 +00:00
Travis Cross
a79f1f4202
fs_cli: implement CLI prompt redrawing
...
The CLI prompt and any text-in-progress now stays cleanly below log
messages and other received output from FS.
This also implements hardcoded prompt coloring.
2011-09-23 01:25:43 +00:00
Travis Cross
244bb73f7c
fs_cli: fix off-by-one error
2011-09-23 01:25:43 +00:00
Travis Cross
48acc0cd38
fs_cli: do not assume that LineInfo buffers are null-terminated
...
man editline(3el) says that they're not.
2011-09-23 01:25:43 +00:00
Travis Cross
e87af9011a
fs_cli: fix misplaced assert
2011-09-23 01:25:43 +00:00
Travis Cross
73d7e5a364
fs_cli: tell el_init() about stdin and stderr
2011-09-23 01:25:42 +00:00
Travis Cross
05046e005e
fs_cli: fix default location of CLI history
...
Modern linux systems don't write volatile information to /etc.
2011-09-23 01:25:42 +00:00
Travis Cross
1e93151b79
fs_cli: ignore leading spaces on the CLI
2011-09-23 01:25:42 +00:00
Travis Cross
ee94dac7cb
fs_cli: refactor allow_ctl_c handling
...
This way we don't have to lie about whether we're connected to achieve
our intended result.
2011-09-23 01:25:42 +00:00
Travis Cross
4ae6cce43c
fs_cli: make sure we find a match even if we cannot write to stdout
2011-09-23 01:25:42 +00:00
Travis Cross
cbe8b9d55d
fs_cli: fix segfault if a pressed function key is not bound
2011-09-23 01:25:42 +00:00
Travis Cross
712853d900
fs_cli: do not print extra newline on function key press
2011-09-23 01:25:42 +00:00
Travis Cross
5d1e95021c
fs_cli: use nanosleep
2011-09-23 01:25:42 +00:00
Travis Cross
e0db2c0e10
fs_cli: refactor out read_config()
2011-09-23 01:25:41 +00:00
Travis Cross
41937b04c6
fs_cli: refactor out stdout_writeable()
2011-09-23 01:25:41 +00:00
Travis Cross
a511dcee94
fs_cli: make some stylistic improvements
2011-09-23 01:25:41 +00:00
Travis Cross
a78ec2588a
fs_cli: cleanup whitespace and reindent
2011-09-23 01:25:41 +00:00
Mathieu Rene
5fad26b46e
add timeout option to fs_cli
2011-05-25 15:02:02 -04:00
Jeff Lenk
3d73e23b12
stupid compiler this should never have worked
2011-04-20 16:26:47 -05:00
Michael S Collins
0db261ac28
Add missing newline on fs_cli usage
2011-03-07 10:57:25 -08:00
Anthony Minessale
e7b3c3b1ad
add -i --interrupt to fs_cli to allow control-c to exit the program
2011-03-06 19:57:05 -06:00
Anthony Minessale
986f258db0
let ctl-c work until you are connected
2011-02-24 18:48:16 -06:00
Anthony Minessale
2ec2a9b0d3
skip blocking writes on fs_cli to avoid backing up event socket
2011-02-04 09:40:04 -06:00
Anthony Minessale
dc436b82a5
block control-z from fs cli and print a warning how to exit properly
2011-02-03 20:42:17 -06:00
Jeff Lenk
d29d83d743
ESL-53 Noevent/Noevents disparity
2010-12-20 19:23:13 -06:00
Michael S Collins
7039ba47a1
libesl: allow fs_cli -x to have args up to 1024 chars (was 256)
2010-12-01 17:39:17 -08:00
Anthony Minessale
70d215ef6d
add -R to reconnect
2010-07-22 15:50:02 -05:00
Jeff Lenk
74c40f5aa3
Fix windows build
2010-07-19 12:54:30 -05:00
Anthony Minessale
c0c699ba7e
small tweak to last patch
2010-07-19 12:00:19 -05:00
Anthony Minessale
36bfe432cf
add -r to fs_cli to retry every second up to 2 min to connect
2010-07-19 11:56:01 -05:00
Jeff Lenk
d1d6be889d
FSCORE-611 Increase buffer in fs_cli for Win
2010-05-23 23:32:44 -05:00
Mathieu Rene
6c98ba4819
fs_cli: add help text for /uuid
2010-05-02 18:10:52 -04:00
Mathieu Rene
0ea3d48529
Add /uuid command to fs_cli to filter logs by uuid
2010-04-30 17:20:42 -04:00
Michael Jerris
ad581d8c00
fix openbsd build of libesl (FSBUILD-256)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17070 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-22 23:02:48 +00:00
Jeff Lenk
a55b15025c
FSCORE-546
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16572 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-04 22:21:23 +00:00
Mathieu Rene
1e6bb3a47e
FSCORE-530
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16428 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-21 02:36:28 +00:00
Anthony Minessale
bd97fb615f
allow alias expansion from fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-20 17:45:53 +00:00
Anthony Minessale
34fc42c7b5
=/
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16328 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 22:22:08 +00:00
Anthony Minessale
aa580a5020
fix fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 22:18:01 +00:00
Anthony Minessale
a53236da7f
add support for user level auth to esl and fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16161 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-05 20:37:16 +00:00