(address, text = None)
return color(text)
Returns a colorized string representing the provided address.

    Arguments:
        address(int): Address to look up
        text(str): Optional text to use in place of the address
              in the return value string.
Returns a colorized string representing the provided address.
Returns a colorized string representing the provided address .
def get(address, text = None):
    """
    Returns a colorized string representing the provided address.

    Arguments:
        address(int): Address to look up
        text(str): Optional text to use in place of the address
              in the return value string.
    """
    address = int(address)

    page = pwndbg.vmmap.find(int(address))

    if page is None:                 color = normal
    elif '[stack' in page.objfile:   color = stack
    elif '[heap'  in page.objfile:   color = heap
    elif page.execute:               color = code
    elif page.rw:                    color = data
    else:                            color = rodata

    if page and page.rwx:
        old_color = color
        color = lambda x: rwx(old_color(x))

    if text is None and isinstance(address, int) and address > 255:
        text = hex(int(address))
    if text is None:
        text = str(int(address))

    return color(text)
def get ( address , text = None ) : address = int ( address ) page = pwndbg . vmmap . find ( int ( address ) ) if page is None : color = normal elif '[stack' in page . objfile : color = stack elif '[heap' in page . objfile : color = heap elif page . execute : color = code elif page . rw : color = data else : color = rodata if page and page . rwx : old_color = color color = lambda x : rwx ( old_color ( x ) ) if text is None and isinstance ( address , int ) and address > 255 : text = hex ( int ( address ) ) if text is None : text = str ( int ( address ) ) return color ( text )