Colours more help

This commit is contained in:
jvoisin 2014-08-17 02:42:17 +02:00
parent c8af9cb1cd
commit 687cb6533c
3 changed files with 19 additions and 17 deletions

View File

@ -802,12 +802,15 @@ void cmd_anal_reg(RCore *core, const char *str) {
case '+':
r_reg_arena_push (core->dbg->reg);
break;
case '?':
r_cons_printf (
"|Usage: drs Register states commands\n"
"| drs List register stack\n"
"| drs+ Push register state\n"
"| drs- Pop register state\n");
case '?':{
const char* help_msg[] = {
"Usage:", "drs", " # Register states commands",
"drs", "", "List register stack",
"drs+", "", "Push register state",
"drs-", "", "Pop register state",
NULL};
r_core_cmd_help (core, help_msg);
}
break;
default:
r_cons_printf ("%d\n", r_list_length (

View File

@ -1775,13 +1775,15 @@ static int cmd_print(void *data, const char *input) {
r_print_date_w32 (core->print, core->block+l, sizeof (ut64));
core->print->big_endian = !core->print->big_endian;
break;
case '?':
r_cons_printf (
"|Usage: pt[dn?]\n"
"| pt print unix time (32 bit cfg.big_endian)\n"
"| ptd print dos time (32 bit cfg.big_endian)\n"
"| ptn print ntfs time (64 bit !cfg.big_endian)\n"
"| pt? show help message\n");
case '?':{
const char* help_msg[] = {
"Usage: pt", "[dn]", "print timestamps",
"pt", "", "print unix time (32 bit `cfg.big_endian`",
"ptd","", "print dos time (32 bit `cfg.big_endian`",
"ptn","", "print ntfs time (64 bit `cfg.big_endian`",
NULL};
r_core_cmd_help (core, help_msg);
}
break;
}
break;

View File

@ -636,9 +636,6 @@ static int cmd_search(void *data, const char *input) {
r_search_set_distance (core->search, (int)
r_config_get_i (core->config, "search.distance"));
switch (input[1]) {
case '?':
eprintf ("Usage: /v[1|2|4|8] [value] # obeys cfg.bigendian\n");
return R_TRUE;
case '8':
n64 = r_num_math (core->num, input+2);
r_mem_copyendian ((ut8*)&n64, (const ut8*)&n64,
@ -845,7 +842,7 @@ static int cmd_search(void *data, const char *input) {
"/m", " magicfile", "search for matching magic file (use blocksize)",
"/p", " patternsize", "search for pattern of given size",
"/r", " sym.printf", "analyze opcode reference an offset",
"/v", "[?248] num", "look for a asm.bigendian 32bit value",
"/v", "[1248] value", "look for an `asm.bigendian` 32bit value",
"/w", " foo", "search for wide string 'f\\0o\\0o\\0'",
"/wi", " foo", "search for wide string ignoring case 'f\\0o\\0o\\0'",
"/x"," ff..33", "search for hex string ignoring some nibbles",