help, scr.utf8=true: Add 1 space after left bar (#5397)
This commit is contained in:
parent
41bbed1883
commit
1cb28dc1e7
2 changed files with 31 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ static inline const char *get_vertical_line(size_t idx, size_t len, bool scr_cur
|
|||
} else if (scr_curvy && (idx == len - 1)) {
|
||||
return RUNE_CURVE_CORNER_BL;
|
||||
} else if (scr_utf8) {
|
||||
return RUNE_LINE_VERT;
|
||||
return RUNE_LINE_VERT " ";
|
||||
}
|
||||
return "| ";
|
||||
}
|
||||
|
|
@ -1193,7 +1193,7 @@ static char *group_get_help(RzCmd *cmd, RzCmdDesc *cd, bool use_color) {
|
|||
|
||||
static void fill_argv_modes_help_strbuf(RzCmd *cmd, RzStrBuf *sb, RzCmdDesc *cd, bool use_color) {
|
||||
bool scr_utf8 = core_config_get_b(cmd->core, "scr.utf8");
|
||||
const char *vertical_line = scr_utf8 ? RUNE_LINE_VERT : "| ";
|
||||
const char *vertical_line = scr_utf8 ? RUNE_LINE_VERT " " : "| ";
|
||||
|
||||
size_t max_len = 0, min_len = SIZE_MAX;
|
||||
update_minmax_len(cd, &max_len, &min_len, true);
|
||||
|
|
@ -1516,7 +1516,7 @@ RZ_API bool rz_cmd_get_help_strbuf(RzCmd *cmd, const RzCmdDesc *cd, bool use_col
|
|||
rz_return_val_if_fail(cmd && cd && sb, false);
|
||||
|
||||
bool scr_utf8 = core_config_get_b(cmd->core, "scr.utf8");
|
||||
const char *vertical_line = scr_utf8 ? RUNE_LINE_VERT : "| ";
|
||||
const char *vertical_line = scr_utf8 ? RUNE_LINE_VERT " " : "| ";
|
||||
|
||||
do_print_child_help(cmd, sb, cd, cd->name, cd->help->summary, vertical_line, false, MAX_RIGHT_ALIGHNMENT, use_color);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -108,6 +108,34 @@ EXPECT=<<EOF
|
|||
EOF
|
||||
RUN
|
||||
|
||||
NAME=help with scr.utf8=true
|
||||
FILE=--
|
||||
CMDS=e scr.utf8=true; aa?
|
||||
EXPECT=<<EOF
|
||||
Usage: aa[?] # Analysis commands
|
||||
│ aa # Analyze all flags starting with sym. and entry
|
||||
│ aaa # Analyze all calls, references, emulation and applies signatures
|
||||
│ aaaa # Experimental analysis
|
||||
│ aac[i] # Analysis function calls commands
|
||||
│ aaC # Analysis classes from RzBin
|
||||
│ aad # Analyze data references to code
|
||||
│ aae[f] # Analysis commands using ESIL
|
||||
│ aaf[ert] # Analysis function commands
|
||||
│ aai[j] # Print preformed analysis details
|
||||
│ aaj # Analyze all unresolved jumps
|
||||
│ aal<g?> # Language specific analysis commands
|
||||
│ aan[r] # Automatic rename functions commands
|
||||
│ aap # Analyze all preludes
|
||||
│ aar [<n_bytes>] # Analyze xrefs in current section or by n_bytes
|
||||
│ aas # Analyze only the symbols
|
||||
│ aaS # Analyze only the flags starting as sym.* and entry*
|
||||
│ aat [<func_name>] # Analyze all/given function to convert immediate to linked structure offsets
|
||||
│ aaT [<n_bytes>] # Prints commands to create functions after a trap call
|
||||
│ aau [<min_len>] # Print memory areas not covered by functions
|
||||
│ aav[*] # Analyze values referencing a specific section or map
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=recursive help json (old style)
|
||||
FILE==
|
||||
CMDS=<<EOF
|
||||
|
|
|
|||
Loading…
Reference in a new issue