'exit' or empty line to quit remote shell mode from r2 -C

This commit is contained in:
pancake 2015-01-27 17:06:01 +01:00
parent 0e590bdd92
commit 62f2773b69

View file

@ -882,6 +882,8 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
for (;;) {
r_line_set_prompt (prompt2);
res = r_line_readline ();
if (!res || !*res || !strcmp (res, "exit"))
break;
ptr = r_str_uri_encode (res);
snprintf (uri, sizeof (uri), "http://%s:%s/%s!%s",
@ -897,8 +899,7 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
free (str);
}
}
}
if (str[0]=='V') {
} else if (str[0]=='V') {
if (str[1]==' ') {
rtr_visual (core, T, str+1);
} else {