radare2/test/new/db/cmd/cmd_ec

289 lines
5.6 KiB
Plaintext
Raw Normal View History

NAME=ec* fgbg
FILE=-
CMDS=<<EOF
eco sepia
ec*
EOF
EXPECT=<<EOF
ec comment rgb:f0d090
ec usrcmt rgb:f0f0f0
ec args rgb:b0b070
ec fname rgb:b0b070
ec floc rgb:00ffff
ec fline rgb:c0a060
ec flag rgb:f0f0d0
ec label rgb:708080
ec help rgb:a0b070
ec flow rgb:c0a060
ec flow2 rgb:f0e0c0
ec prompt rgb:906000
ec offset rgb:906000
ec input rgb:c0a060
ec invalid rgb:c06040
ec other rgb:b0a060
ec b0x00 rgb:403010
ec b0x7f rgb:f0d090
ec b0xff rgb:906000
ec math rgb:d0b070
ec bin rgb:f0e0c0
ec btext rgb:f0e0c0
ec push rgb:d0b070
ec pop rgb:b0b070
ec crypto rgb:0000ff
ec jmp rgb:f0e0c0
ec cjmp rgb:f0e0c0
ec call rgb:ffffff
ec nop rgb:708080
ec ret rgb:a0b070
ec trap rgb:403010
ec ucall rgb:ffffff
ec ujmp rgb:f0e0c0
ec swi rgb:b0b070
ec cmp rgb:c0a060
ec reg rgb:c0a060
ec creg rgb:906000
ec num rgb:906000
ec mov rgb:d0b070
ec func_var rgb:f0d090
ec func_var_type rgb:805000
ec func_var_addr rgb:906000
ec widget_bg rgb:d0b070 rgb:000000
ec widget_sel rgb:000000 rgb:f0e0c0
ec ai.read rgb:c0b070
ec ai.write rgb:c0a060
ec ai.exec rgb:d0b070
ec ai.seq rgb:906000
ec ai.ascii rgb:f0e0c0
ec graph.box rgb:403010
ec graph.box2 rgb:c0a060
ec graph.box3 rgb:c0a060
ec graph.box4 rgb:c0a060
ec graph.true rgb:f0d090
ec graph.false rgb:403010
ec graph.trufae rgb:f0d090
ec graph.current rgb:0000ff
ec graph.traced rgb:0000ff
ec graph.diff.unknown rgb:881798
ec graph.diff.new rgb:c50f1f
ec graph.diff.match rgb:767676
ec graph.diff.unmatch rgb:c19c00
ec gui.cflow rgb:ffff00
ec gui.dataoffset rgb:ffff00
ec gui.background rgb:000000
ec gui.alt_background rgb:ffffff
ec gui.border rgb:000000
ec wordhl rgb:ff0000
ec linehl rgb:201000
EOF
RUN
NAME=ansicon ecs
FILE=-
CMDS=<<EOF
e scr.color=1
e scr.ansicon=true
ecs
EOF
EXPECT=<<EOF
__ black
__ red
__ white
__ green
__ magenta
__ yellow
__ cyan
__ blue
__ gray
__ bblack
__ bred
__ bwhite
__ bgreen
__ bmagenta
__ byellow
__ bcyan
__ bblue
__ none
EOF
RUN
NAME=ecd and eco bright
FILE=-
CMDS=<<EOF
e scr.color=1
ecd
ec
?e
eco bright
ec
EOF
EXPECT=<<EOF
## comment
## usrcmt
## args
## fname
## floc
## fline
## flag
## label
## help
## flow
## flow2
## prompt
## offset
## input
## invalid
## other
## b0x00
## b0x7f
## b0xff
## math
## bin
## btext
## push
## pop
## crypto
## jmp
## cjmp
## call
## nop
## ret
## trap
## ucall
## ujmp
## swi
## cmp
## reg
## creg
## num
## mov
## func_var
## func_var_type
## func_var_addr
## widget_bg
## widget_sel
## ai.read
## ai.write
## ai.exec
## ai.seq
## ai.ascii
## graph.box
## graph.box2
## graph.box3
## graph.box4
## graph.true
## graph.false
## graph.trufae
## graph.current
## graph.traced
## graph.diff.unknown
## graph.diff.new
## graph.diff.match
## graph.diff.unmatch
## gui.cflow
## gui.dataoffset
## gui.background
## gui.alt_background
## gui.border
## wordhl
## linehl
2020-03-04 01:10:07 +00:00
## comment
## usrcmt
## args
## fname
## floc
## fline
## flag
## label
## help
## flow
## flow2
## prompt
## offset
## input
## invalid
## other
## b0x00
## b0x7f
## b0xff
## math
## bin
## btext
## push
## pop
## crypto
## jmp
## cjmp
## call
## nop
## ret
## trap
## ucall
## ujmp
## swi
## cmp
## reg
## creg
## num
## mov
## func_var
## func_var_type
## func_var_addr
## widget_bg
## widget_sel
## ai.read
## ai.write
## ai.exec
## ai.seq
## ai.ascii
## graph.box
## graph.box2
## graph.box3
## graph.box4
## graph.true
## graph.false
## graph.trufae
## graph.current
## graph.traced
## graph.diff.unknown
## graph.diff.new
## graph.diff.match
## graph.diff.unmatch
## gui.cflow
## gui.dataoffset
## gui.background
## gui.alt_background
## gui.border
## wordhl
## linehl
EOF
RUN
NAME=ec* and attributes
FILE=-
CMDS=<<EOF
eco bright
ec*~pop
eco white2
ec*~bin
ec*~cjmp
ec*~comment
ec*~fname
EOF
EXPECT=<<EOF
ec pop rgb:ff00ff . bold
ec bin rgb:4f1900 . bold
ec cjmp rgb:376b4c . bold underline
ec comment rgb:001296 . italic
ec fname rgb:8d0004 . bold italic
EOF
RUN
NAME=ecHi
FILE=-
CMDS=ecHi xxxx
EXPECT_ERR=<<EOF
Unknown color xxxx
EOF
RUN