5 bool autorefresh =
false;
22 const char *cmds[] = {
"px",
"pd",
"pxa",
"dr",
"sr SP;pxa",
NULL };
61 " HJKL : move faster\n"
62 " +-*/ : change block size\n"
63 " pP : rotate print modes\n"
64 " T : enter TextLog chat console\n"
65 " @ : enter auto-refresh mode\n"
66 " i : insert hexpair\n"
67 " q : quit this mode and go back to the shell\n"
68 " sS : step / step over\n"
69 " . : seek entry or pc\n");
75 #define COLORFLAGS (core->print->flags & RZ_PRINT_FLAGS_COLOR)
108 eprintf(
"Press <enter> to return to Visual mode.\n");
135 case '@': autorefresh =
true;
break;
174 case 'q':
return false;
183 char *proto =
"http";
187 char prompt[64], prompt2[64], *
str, *ptr;
194 proto, host, port,
file);
195 snprintf(prompt2,
sizeof(prompt2),
"[%s:%s]$ ", host, port);
205 if (!strcmp(res,
"!sh")) {
209 if (!res || !*res || !strcmp(res,
"exit")) {
217 res = strstr(
str,
"\n\n");
219 res = strstr(res + 1,
"\n\n");
221 res = res ? res + 2 :
str;
222 const char *tail = (res[strlen(res) - 1] ==
'\n') ?
"" :
"\n";
223 printf(
"%s%s", res, tail);
230 }
else if (res[0] ==
'v' || res[0] ==
'V') {
static void showcursor(RzCore *core, int x)
RZ_API void rz_cons_clear00(void)
RZ_API void rz_cons_break_pop(void)
RZ_API void rz_cons_break_push(RzConsBreak cb, void *user)
RZ_API int rz_cons_printf(const char *format,...)
RZ_API void rz_cons_flush(void)
RZ_API bool rz_cons_is_breaked(void)
RZ_API void rz_cons_println(const char *str)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API const char * rz_line_readline(void)
RZ_API int rz_line_hist_add(const char *line)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
RZ_API void rz_line_set_prompt(const char *prompt)
static void insert(char *dst, const char *src)
static const char hex[16]
static char * rtrcmd(TextLog T, const char *str)
RZ_API void rz_core_rtr_cmd(RzCore *core, const char *input)
static void __rtr_shell(RzCore *core, int nth)
static bool rtr_visual(RzCore *core, TextLog T, const char *cmd)
RZ_API char * rz_socket_http_get(const char *url, int *code, int *rlen)
RZ_API int rz_socket_free(RzSocket *s)
RZ_API char * rz_str_uri_encode(const char *buf)
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
RZ_API int rz_sys_sleep(int secs)
Sleep for secs seconds.