Implement 'iaj' command

This commit is contained in:
pancake 2013-12-05 02:06:19 +01:00
parent eae051efd3
commit feb42ff61a
2 changed files with 9 additions and 15 deletions

View File

@ -586,7 +586,7 @@ static int cmd_eval(void *data, const char *input) {
" ecr set random palette\n"
" ecs show a colorful palette\n"
" ecf dark|white load white color scheme template\n"
" ec prompt red change coloro of prompt\n"
" ec prompt red change color of prompt\n"
"Available colors:\n"
" rgb:000 24 bit hexadecimal rgb color\n"
" red|green|blue|. well known ansi colors\n"

View File

@ -104,20 +104,14 @@ static int cmd_info(void *data, const char *input) {
case 'c':
case 'C': RBININFO (R_CORE_BIN_ACC_CLASSES); break;
case 'a':
if (input[1]=='*') {
cmd_info (core, "I*");
cmd_info (core, "e*");
cmd_info (core, "i*");
cmd_info (core, "s*");
cmd_info (core, "S*");
cmd_info (core, "z*");
} else {
cmd_info (core, "I");
cmd_info (core, "e");
cmd_info (core, "i");
cmd_info (core, "s");
cmd_info (core, "S");
cmd_info (core, "z");
{
char *p, cmd[3], chars[] = "IeisSz";
for (p = chars; *p; p++) {
cmd[0] = *p;
cmd[1] = input[1];
cmd[2] = 0;
cmd_info (core, cmd);
}
}
break;
case '?':