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
Michael Jerris
96abcd5efd
add help banner on connection failure (ESL-25)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16040 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-23 02:03:44 +00:00
Jeff Lenk
c8c4a1afe5
ESL-24 Add tab complete to windows
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16010 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-21 17:39:05 +00:00
Anthony Minessale
4942f22b26
auto remove spaces from tab completion
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-17 17:43:40 +00:00
Mathieu Rene
7d6ff98fc6
fs_cli: fix 32 bits compile
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15966 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-15 14:58:20 +00:00
Anthony Minessale
a0479189b2
bowl over previous commit that nearly conflicted out 2 hours of coding (grrr) hook new complete api up to FSAPI and export tab completion down to fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15956 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-15 00:19:30 +00:00
Brian West
002e97848c
FSCORE-389
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-25 19:29:34 +00:00
Mathieu Rene
adf6244240
Fix an error in fs_cli's usage
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-08 04:00:14 +00:00
Mathieu Rene
f6e6d08bd6
ESL-13
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-08 16:48:51 +00:00
Michael Collins
7b52ef1305
Cosmetics
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12725 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-23 22:55:56 +00:00
Michael Jerris
73f6be21b7
fix windows build error
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12645 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-17 16:32:29 +00:00
Anthony Minessale
73e738ab9d
fix socket race
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12605 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-14 19:23:07 +00:00
Michael Jerris
d0479faee1
fix fs_cli windows build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 20:29:33 +00:00
Mathieu Rene
06aeca3586
Make fs_cli exit on EOF and handle SIGQUIT, thanks rupa
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11929 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 18:22:10 +00:00
Michael Collins
422f59fa04
Too many people asking 'how do I...' with fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-06 20:33:20 +00:00
Anthony Minessale
d0900fb1d5
make err more obvious
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11492 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-26 18:10:19 +00:00
Michael Collins
092ff4058a
Add /debug to /help list for fs_cli
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-22 19:44:08 +00:00
Anthony Minessale
bbac44c53a
cleanup and fix disconnect race
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11078 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-06 00:18:57 +00:00
Ken Rice
c5134b9448
why didnt we do this earlier
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11057 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-02 17:40:26 +00:00
Michael Jerris
d9c88301ee
fix help
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11044 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-01 18:57:30 +00:00
Michael Jerris
7cafeaf110
fix bsd fs_cli build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11037 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 19:58:52 +00:00
Anthony Minessale
20ca0c41a0
allow unix build without libedit
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11036 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 19:44:16 +00:00
Anthony Minessale
42d9888c94
integrate fs_cli into core build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11035 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 19:38:00 +00:00
Anthony Minessale
00b1efed34
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11034 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 19:14:52 +00:00
Anthony Minessale
9b68b47440
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11031 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 18:55:08 +00:00
Anthony Minessale
938cf9f1de
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11029 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 18:51:26 +00:00
Anthony Minessale
3d57467b56
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11028 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 18:49:28 +00:00
Anthony Minessale
d4b85e7858
merge patch FSSCRIPTS-12
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11027 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 18:45:41 +00:00
Anthony Minessale
fc6df88250
add fkeys
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11026 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 18:30:03 +00:00
Anthony Minessale
c6b3871eb0
cleanup debug handling
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11023 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 16:52:11 +00:00
Anthony Minessale
716d8f996e
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11009 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 21:34:59 +00:00
Anthony Minessale
47ffbb3dde
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11008 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 21:28:29 +00:00
Michael Jerris
eb9685f655
set default level
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10999 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 01:55:59 +00:00
Ken Rice
4de09281b4
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10998 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 01:24:32 +00:00
Anthony Minessale
58abcae22c
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10997 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 00:31:15 +00:00
Anthony Minessale
97656065cd
don't display console_clean logs
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10990 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-29 18:40:40 +00:00
Michael Jerris
f510f50dbb
formatting
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10965 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 21:24:34 +00:00
Michael Jerris
568d0313fc
better output
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 21:20:58 +00:00
Michael Jerris
7e02aeca1f
fix command line args when config file present
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 21:10:40 +00:00
Ken Rice
5267761ff9
add debug to profile config
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 20:47:53 +00:00
Michael Jerris
e8e72dd313
cleanup
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10961 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 20:39:03 +00:00
Ken Rice
4bfb153513
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10960 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 19:25:36 +00:00
Ken Rice
5a8a9cf2f2
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10959 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 19:24:45 +00:00
Ken Rice
451ddc15ec
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10956 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:45:49 +00:00
Ken Rice
32bc21e861
clean up usage help
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10955 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:43:54 +00:00
Ken Rice
0bdbc85b58
add some bounds checking
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10954 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:41:59 +00:00
Ken Rice
0b976886fc
add a couple of more options
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10953 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:14:00 +00:00
Michael Jerris
db6f99ba33
fix /log
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:11:31 +00:00
Michael Jerris
b899c073e0
fix /log
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10951 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 18:07:36 +00:00
Michael Jerris
feaa9ced1c
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10950 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 17:54:30 +00:00
Michael Jerris
18e527f2a1
fix build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10948 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-26 17:07:05 +00:00
Ken Rice
4eff9b1b32
make it use long options
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10939 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-24 15:29:38 +00:00
Michael Jerris
c9a4b3af08
fs_cli add colors on windows and build static
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10938 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-24 00:00:45 +00:00
Michael Jerris
d4ae1a8f1c
fs_cli works on windows
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10937 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-23 23:26:37 +00:00
Michael Jerris
e7c4953c99
building (almost working) on windows again
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10936 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-23 22:52:52 +00:00
Anthony Minessale
91d50eab70
sync
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10935 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-23 22:15:39 +00:00
Ken Rice
fc64e962ba
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10934 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-23 22:01:01 +00:00
Ken Rice
ebcd6c2932
switch to using getopt so we can specify host, port and password on the command line
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10927 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-23 20:25:10 +00:00
Michael Jerris
d69c309548
fs_cli now builds on windows, does not yet work
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10911 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-22 18:53:09 +00:00
Anthony Minessale
1bda469485
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10898 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-21 21:54:43 +00:00
Anthony Minessale
74c4b1dc92
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10896 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-20 18:34:34 +00:00