rizin/test/db/cmd/cmd_interactive_modes
2025-12-06 06:56:55 +08:00

142 lines
6.1 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NAME=Internal less
FILE==
CMDS=<<EOF
e scr.interactive=false
pd 1~..
EOF
EXPECT_ERR=<<EOF
Internal less requires scr.interactive=true.
EOF
RUN
NAME=Hud mode
FILE==
CMDS=<<EOF
e scr.interactive=false
pd 1~...
EOF
EXPECT_ERR=<<EOF
Hud mode requires scr.interactive=true.
EOF
RUN
NAME=?** search
FILE==
CMDS=<<EOF
e scr.interactive=true
e scr.utf8=true
e scr.columns=120
e scr.rows=4
e scr.color=0
< \n; ?**
echo
echo
e scr.utf8=false
< \n; ?**
echo
EOF
EXPECT=<<EOF
[?25l
0> | 
0> |
- │ !<command> [<args1> <args2> ...] # Run command via system(3) with raw output. Grepping via '~' automatically forces
use of '!!' instead.
│ !!<command> [<args1> <args2> ...] # Run command via system(3) and pipe its stdout to rizin [?25h
[?25l
0> | 
0> |
- | !<command> [<args1> <args2> ...] # Run command via system(3) with raw output. Grepping via '~' automatically forces
use of '!!' instead.
| !!<command> [<args1> <args2> ...] # Run command via system(3) and pipe its stdout to rizin [?25h
EOF
RUN
NAME=?** entire help string on match
FILE=--
CMDS=<<EOF
e scr.interactive=true
e scr.utf8=true
e scr.columns=100
e scr.rows=3
e scr.color=0
< f\n; ?**
echo
EOF
EXPECT=<<EOF
[?25l
0> | 
0> |
- │ !<command> [<args1> <args2> ...] # Run command via system(3) with raw output. Grepping via '~'
automatically forces use of '!!' instead. 0> f| 0> f|
- │ !<command> [<args1> <args2> ...] # Run command via system(3) with raw output. Grepping via '~'
automatically Forces use oF '!!' instead. [?25h
EOF
RUN
NAME=?** wrapping
FILE=--
CMDS=<<EOF
e scr.interactive=true
e scr.utf8=true
e scr.columns=100
e scr.rows=5
e scr.color=0
< q\n; ?**
echo
EOF
EXPECT=<<EOF
[?25l
0> | 
0> |
- │ !<command> [<args1> <args2> ...] # Run command via system(3) with raw output. Grepping via '~'
automatically forces use of '!!' instead.
│ !!<command> [<args1> <args2> ...] # Run command via system(3) and pipe its stdout to rizin
│ #!<interpreter-name> [<arg1> <arg2> ...] # Run interpreter 0> q| 0> q|
- │ %l <str> # Calculate length of string <str>. Quiet mode stores value in `$?`
register.
│ %lQ <str> # Calculate length of string <str>. Quiet mode stores value in `$?`
register. (Quiet mode) [?25h
EOF
RUN
NAME=?**e search
FILE==
CMDS=<<EOF
e scr.interactive=true
e scr.utf8=true
e scr.columns=120
e scr.rows=3
e scr.color=0
< \n; ?**e
echo
EOF
EXPECT=<<EOF
[?25l
0> | 
0> |
- analysis.apply.signature: bool - enables/disables auto-applying signatures to the loaded binary (see also flirt

analysis.arch: str - Select the architecture to use [?25h
EOF
RUN
NAME=?*** search
FILE==
CMDS=<<EOF
e scr.interactive=true
e scr.utf8=true
e scr.columns=100
e scr.rows=6
e scr.color=0
< %l\n; ?***
echo
EOF
EXPECT=<<EOF
[?25l
0> | 
0> |
- ! | Usage: !<command> [<args1> <args2> ...] # Run command via system(3) with raw output.
! | Grepping via '~' automatically forces use of '!!'
! | instead.
! | Examples:
! | | !ls # Execute the 'ls' command via system(3) 0> %| 0> %|
- $ | Usage: $[alias[=cmd] [args...]] # List all defined aliases / Define alias (see %$? for help
% | Usage: %[j] <expr> # Evaluate numerical expression <expr>
% | │ % <expr> # Evaluate numerical expression <expr>
% | │ %j <expr> # Evaluate numerical expression <expr> (JSON mode)
%j | Usage: %j[j] <expr> # Evaluate numerical expression <expr> (JSON mode) 0> %l| 0> %l|
- %L | Usage: %L[q] <str> # Calculate length of string <str>. Quiet mode stores value in `$?`
%L | register.
%L | │ %L <str> # Calculate length of string <str>. Quiet mode stores value in `$?` register.
%L | │ %Lq <str> # Calculate length of string <str>. Quiet mode stores value in `$?` register.
%L | (quiet mode) [?25h
EOF
RUN