Add readline improvements

Color prompt now working and no reprompting on exit command.
This commit is contained in:
Jethro Grassie 2017-06-20 09:22:55 -04:00
parent 0c6ea4f8a6
commit fdccf7e6c3
No known key found for this signature in database
GPG key ID: DE8ED755616565BB
2 changed files with 10 additions and 3 deletions
contrib/epee/src

View file

@ -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;