mirror of
https://github.com/monero-project/monero.git
synced 2025-07-11 19:59:25 -04:00
Add readline improvements
Color prompt now working and no reprompting on exit command.
This commit is contained in:
parent
0c6ea4f8a6
commit
fdccf7e6c3
2 changed files with 10 additions and 3 deletions
contrib/epee/src
|
@ -168,8 +168,11 @@ static int handle_enter(int x, int y)
|
|||
}
|
||||
free(line);
|
||||
|
||||
rl_set_prompt(last_prompt.c_str());
|
||||
rl_redisplay();
|
||||
if(last_line != "exit")
|
||||
{
|
||||
rl_set_prompt(last_prompt.c_str());
|
||||
rl_redisplay();
|
||||
}
|
||||
|
||||
rl_done = 1;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue