aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/console_handler.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-05-26console_handler: fix start_default_console use of prompt parametermoneromooo-monero1-3/+21
It had not been updated to the function type change
2017-12-16move includes around to lessen overall loadmoneromooo-monero1-0/+3
2017-11-26Added command descriptionsCifrado1-9/+15
2017-08-22Simplify readline supportHoward Chu1-15/+13
And don't use std::mutex
2017-08-02simplewallet: add (out of sync) or (no daemon) markers in the promptmoneromooo-monero1-11/+16
Should help people who don't realize why they haven't seen their monero yet.
2017-07-09Add various readline related fixesJethro Grassie1-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
2017-06-24Add readline improvementsJethro Grassie1-1/+5
Color prompt now working and no reprompting on exit command.
2017-06-18Add readline support to clijethro1-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.
2017-01-16Change logging to easylogging++moneromooo-monero1-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.
2017-01-05Build wallet with Android NDKMoroccanMalinois1-1/+1
2016-11-17epee: blind attempt to fix exit hang on windowsmoneromooo-monero1-0/+14
Thanks to duckduckgo and the internet. This might even compile.
2016-03-11Use boost::thread instead of std::threadHoward Chu1-8/+8
and all other associated IPC
2016-02-18Use boost::thread instead of std::threadHoward Chu1-2/+3
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
2016-01-21OpenBSD support for Monero.me0wmix1-0/+7
2015-12-06console_handler: catch exception inside the input loopmoneromooo-monero1-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.
2015-11-28wallet: optional automatic refresh from the daemonmoneromooo-monero1-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.
2015-10-21console_handler: silence spurious message when exiting daemonmoneromooo-monero1-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.
2015-07-18console_handler: do not call a NULL function pointermoneromooo-monero1-1/+2
The exit_handler can be NULL.
2015-07-18console_handler: check for eof before trying to use inputmoneromooo-monero1-4/+5
We'll get there without input if we exited
2015-06-03fix ^D exit for bitmonerodmoneromooo-monero1-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.
2015-05-30console_handler: handle EOF properlymoneromooo-monero1-3/+19
Exit instead of reading "empty" commands in an infinite loop.
2015-03-27Restore daemon interactive modeThomas Winget1-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.
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget1-54/+51
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.
2014-07-25move modified epee code to new classes, revert licensefluffypony1-28/+24
2014-07-23License updated to BSD 3-clausefluffypony1-24/+28
2014-06-13Fixed console handler not properly exiting on SIGINT and suchThomas Winget1-1/+7
2014-06-06removed continue issuefluffypony1-1/+0
2014-06-04don't fall apart if you can't get_linefluffypony1-3/+2
2014-05-250.8.8updatemydesktop1-17/+0
2014-04-07Improvements in JSON RPCAntonio Juarez1-1/+1
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-1/+3
2014-03-20some fixesAntonio Juarez1-113/+276
2014-03-03moved all stuff to githubAntonio Juarez1-0/+310