John Jones
461b15acb4
Add #ifndef for Windows
2019-05-21 07:11:17 -05:00
abitmore
30ea9b4a1d
Let rl_getc() always return EOF when quitting
...
even if got an EOL or CTRL+C or etc
2019-05-12 19:44:22 -04:00
abitmore
2056a35b44
Set cli_quitting to true in cli::cancel()
2019-05-12 18:23:04 -04:00
Abit
67e5a06035
Merge pull request #119 from bitshares/shared-ws-client-ptr
...
Use shared_ptr to WS connection in API connection
2019-05-10 15:24:15 +02:00
abitmore
3d39a51cdc
Capture only this in cli::start()
2019-05-09 14:15:34 -04:00
abitmore
b562d81a65
Let CLI be able to restart
2019-05-09 14:15:34 -04:00
abitmore
301f582002
Handle SIGINT when searching in editline
2019-05-08 06:46:36 -04:00
abitmore
51747090a8
Minor function name change
2019-05-08 05:23:33 -04:00
abitmore
bac31e3822
Temporarily comment out check_secret in CLI
...
due to editline bump
2019-05-08 05:10:50 -04:00
abitmore
382970bfa4
Suppress error message when CLI is quitting
2019-05-08 03:51:40 -04:00
abitmore
ed3f1c86dd
Fix signal handling in CLI
2019-05-07 19:43:37 -04:00
abitmore
bd3036df8a
Increase CLI command history buffer size to 256
2019-05-03 09:46:13 -04:00
abitmore
a71893adba
Improve CLI tab completion feature
...
For example, if there are 3 commands: "gethelp", "get_account" and "get_account_name",
input "ge" then press TAB, the command will be completed to "get";
press TAB again, a list with all 3 commands will show;
input "get_ac" then press TAB, the command will be completed to "get_account";
press TAB again, a list with "get_account" and "get_account_name" will show.
2019-05-02 22:11:43 -04:00
Peter Conrad
579914c84d
Removed unused stuff
2019-04-04 17:59:51 +02:00
Valera Cogut
079de9e177
Check if boost::regex is empty
2018-10-30 22:05:31 +02:00
Valera Cogut
157273fb40
Check if exists regex expression
2018-10-30 11:46:57 +02:00
Valera Cogut
edd6fa8ded
Removed pointer for regex expression
2018-10-27 19:06:24 +03:00
Valera Cogut
44896485d1
Optimized regex expression and other little improvements
2018-10-25 23:52:36 +03:00
Valera Cogut
e00bbdaf72
removed not required output to console
2018-10-25 00:01:43 +03:00
Valera Cogut
c9d95c0c9a
Safer way to handle unlock command of cli_wallet #1171
2018-10-25 00:01:43 +03:00
Valera Cogut
ec41a06300
reverting throw exception instead of raising SIGINT in order not to terminate cli_test early
2018-07-30 17:53:57 +03:00
Valera Cogut
40d928e57c
raise SIGINT instead of throwing exception in cli_wallet quit command
2018-07-30 16:48:37 +03:00
Valera Cogut
18206552fc
throwing fc:canceled_exception for quit cli wallet command
2018-07-20 16:44:31 +03:00
Valera Cogut
535fc869b5
remove hard coded method check to result check from quit command
2018-07-19 09:49:03 +03:00
Valera Cogut
0486a5f1e9
fixed issue #1050
2018-07-19 09:49:03 +03:00
Peter Conrad
fca5058464
Merge branch 'master' into sanitize
2018-03-13 21:39:40 +01:00
John Jones
9ee2bcf0a5
avoid double free
2018-03-08 11:05:34 -05:00
John Jones
2017ed911a
fix memory leak
2018-03-08 10:46:23 -05:00
John Jones
43b81cb69b
assuring that malloc gets freed
2018-03-08 07:40:20 -05:00
John Jones
5b5190a55c
changed const to const ref
2018-03-07 09:44:35 -05:00
John Jones
b3053d0421
adjust spacing, add const, remove unnecessary variable, bad malloc check
2018-03-07 02:55:59 -05:00
John Jones
c225488cd4
replace tabs with spaces
2018-03-06 17:17:09 -05:00
John Jones
1fe7d4be46
Trying to get the #$%@$ tabs to disappear
2018-03-06 11:44:00 -05:00
John Jones
f5d68e9336
Adjusting for formatting guidelines
2018-03-06 09:25:38 -05:00
John Jones
5f3ace5ca3
Added space at end of completed command
2018-03-06 08:06:18 -05:00
John Jones
e766ea9429
correctly handle list of methods
2018-03-05 14:37:14 -05:00
John Jones
046c65016b
Replaced tab with spaces
2018-02-26 16:54:32 -05:00
John Jones
9d5a32c536
Moved assignment from within a loop
2018-02-26 16:47:38 -05:00
John Jones
79cf3d2b3a
code cleanup
2018-02-26 16:43:54 -05:00
John Jones
abb4b9b0ab
Added editline as submodule
2018-02-20 15:18:47 -05:00
Alexey Frolov
5138c58e09
sanitize, remove warnings
2018-02-02 15:29:46 +03:00
Eric Frias
a31f0f503d
Fix compile error when readline not available
2015-07-27 12:08:28 -04:00
Daniel Larimer
e9eeb3300c
adding tab completion to CLI
2015-07-27 09:11:20 -04:00
theoreticalbts
7bd47af88e
rpc: Move many method implementations from headers to cpp files
2015-06-30 15:54:29 -04:00
Daniel Larimer
a3c284408e
make CLI prompt configurable
2015-05-18 13:40:01 -04:00
Daniel Larimer
3599850bb9
Merge commit '72288a2'
2015-05-04 14:07:51 -04:00
Daniel Larimer
72288a25b1
making sure getline doesn't blog
2015-05-04 14:07:22 -04:00
Eric Frias
e9824e1740
Add missing include for isatty on win32
2015-05-04 13:36:15 -04:00
theoreticalbts
80de0987d7
Add readline support to fc::rpc::cli
2015-04-29 16:37:54 -04:00