mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 12:04:19 +01:00
Added small test scripts for colours.
This commit is contained in:
parent
9b2a2fd02d
commit
a8f6676623
19
examples/colours.py
Normal file
19
examples/colours.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#---------------------------------------------------------------------
|
||||||
|
# Colour test
|
||||||
|
#
|
||||||
|
# This script demonstrates the usage of background colours.
|
||||||
|
#
|
||||||
|
# Author: Gergely Erdelyi <dyce@d-dome.net>
|
||||||
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Set the colour of the current segment to BLUE
|
||||||
|
SetColor(here(), CIC_SEGM, 0xc02020)
|
||||||
|
# Set the colour of the current function to GREEN
|
||||||
|
SetColor(here(), CIC_FUNC, 0x208020)
|
||||||
|
# Set the colour of the current item to RED
|
||||||
|
SetColor(here(), CIC_ITEM, 0x2020c0)
|
||||||
|
|
||||||
|
# Print the colours just set
|
||||||
|
print "%x" % GetColor(here(), CIC_SEGM)
|
||||||
|
print "%x" % GetColor(here(), CIC_FUNC)
|
||||||
|
print "%x" % GetColor(here(), CIC_ITEM)
|
Loading…
Reference in New Issue
Block a user