aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/console_handler.h
Commit message (Collapse)AuthorAgeFilesLines
* Windows build: fix narrowing error for WaitForSingleObjectJeffrey Ryan2022-05-231-1/+1
| | | | `WaitForSingleObject` returns a `DWORD`, not an int, so assign `retval` as such and it should fix the error.
* Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' commandrbrunner72020-07-241-0/+25
|
* Fix boost <1.60 compilation and fix boost 1.73+ warningsLee Clagett2020-05-311-2/+2
|
* build: fix boost 1.73 compatibilityselsta2020-05-141-2/+2
|
* console_handler: do not let exception past the dormoneromooo-monero2020-02-121-3/+7
| | | | Coverity 208373
* epee: fix console_handlers_binder race, wait for thread to finishxiphon2019-11-121-1/+8
|
* simplewallet: lock console on inactivitymoneromooo-monero2019-08-281-13/+76
|
* console_handler: print newline on EOFmoneromooo-monero2019-03-131-0/+1
| | | | | | This avoids the annoying case where the shell prints its prompt after the last line from Monero output, causing line editing to sometimes go wonky, for lack of a better term
* console_handler: add a global log when exiting via EOFmoneromooo-monero2018-10-201-1/+4
| | | | | It's a common confusion point for users which run monerod without stdin and with --detach
* Merge pull request #4459Riccardo Spagni2018-09-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
* console_handler: fix start_default_console use of prompt parametermoneromooo-monero2018-05-261-3/+21
| | | | It had not been updated to the function type change
* move includes around to lessen overall loadmoneromooo-monero2017-12-161-0/+3
|
* Added command descriptionsCifrado2017-11-261-9/+15
|
* Simplify readline supportHoward Chu2017-08-221-15/+13
| | | | And don't use std::mutex
* simplewallet: add (out of sync) or (no daemon) markers in the promptmoneromooo-monero2017-08-021-11/+16
| | | | | Should help people who don't realize why they haven't seen their monero yet.
* Add various readline related fixesJethro Grassie2017-07-091-0/+6
| | | | | | | | | | - Add missing unbind key - Fix colored messages - Add command completion - Preserve last command input - Fix cursor position issues - Fix trailing whitespace in commands - Synchronize set_prompt
* Add readline improvementsJethro Grassie2017-06-241-1/+5
| | | | Color prompt now working and no reprompting on exit command.
* Add readline support to clijethro2017-06-181-0/+41
| | | | | | | | | | | | | | | | | This PR adds readline support to the daemon and monero-wallet-cli. Only GNU readline is supported (e.g. not libedit) and there are cmake checks to ensure this. There is a cmake variable, Readline_ROOT_DIR that can specify a directory to find readline, otherwise some default paths are searched. There is also a cmake option, USE_READLINE, that defaults to ON. If set to ON, if readline is not found, the build continues but without readline support. One negative side effect of using readline is that the color prompt in the wallet-cli now has no color and just uses terminal default. I know how to fix this but it's quite a big change so will tackle another time.
* Change logging to easylogging++moneromooo-monero2017-01-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* Build wallet with Android NDKMoroccanMalinois2017-01-051-1/+1
|
* epee: blind attempt to fix exit hang on windowsmoneromooo-monero2016-11-171-0/+14
| | | | | | Thanks to duckduckgo and the internet. This might even compile.
* Use boost::thread instead of std::threadHoward Chu2016-03-111-8/+8
| | | | and all other associated IPC
* Use boost::thread instead of std::threadHoward Chu2016-02-181-2/+3
| | | | std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
* OpenBSD support for Monero.me0wmix2016-01-211-0/+7
|
* console_handler: catch exception inside the input loopmoneromooo-monero2015-12-061-32/+37
| | | | | | | | | | This prevents an exception from existing the loop without calling the exit handler, if one is defined. The daemon defines one, which stops the p2p layer, and will only exit once the p2p layer is shut down. This would cause a hang upon an exception, as the input thread would have exited and the daemon would wait forever with no console user input.
* wallet: optional automatic refresh from the daemonmoneromooo-monero2015-11-281-9/+21
| | | | | | The daemon will be polled every 90 seconds for new blocks. It is enabled by default, and can be turned on/off with set auto-refresh 1 and set auto-refresh 0 in the wallet.
* console_handler: silence spurious message when exiting daemonmoneromooo-monero2015-10-211-1/+1
| | | | | | The daemon registers a custom exit command, which cause the loop to stop. Catch this case before printing "Failed to read line" as this is an expected case.
* console_handler: do not call a NULL function pointermoneromooo-monero2015-07-181-1/+2
| | | | The exit_handler can be NULL.
* console_handler: check for eof before trying to use inputmoneromooo-monero2015-07-181-4/+5
| | | | We'll get there without input if we exited
* fix ^D exit for bitmonerodmoneromooo-monero2015-06-031-8/+8
| | | | | | It uses the async console handler differently than simplewallet, and wasn't running the same exit code, causing it to never actually exit after breaking out of the console entry loop.
* console_handler: handle EOF properlymoneromooo-monero2015-05-301-3/+19
| | | | Exit instead of reading "empty" commands in an infinite loop.
* Restore daemon interactive modeThomas Winget2015-03-271-5/+7
| | | | | | | Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
* Daemonize changes pulled in -- daemon buildsThomas Winget2015-02-241-52/+49
| | | | | | | many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
* move modified epee code to new classes, revert licensefluffypony2014-07-251-28/+24
|
* License updated to BSD 3-clausefluffypony2014-07-231-24/+28
|
* Fixed console handler not properly exiting on SIGINT and suchThomas Winget2014-06-131-1/+7
|
* removed continue issuefluffypony2014-06-061-1/+0
|
* don't fall apart if you can't get_linefluffypony2014-06-041-3/+2
|
* 0.8.8updatemydesktop2014-05-251-17/+0
|
* Improvements in JSON RPCAntonio Juarez2014-04-071-1/+1
|
* json rpc for wallet and bugfixAntonio Juarez2014-04-021-1/+3
|
* some fixesAntonio Juarez2014-03-201-113/+276
|
* moved all stuff to githubAntonio Juarez2014-03-031-0/+310