'Python, tcod rendering step by step

in this little piece of code i try to add different layer of rendering step by step, but it seems there s something i missed in the way it works.

[.....]
    with tcod.context.new_terminal(  
        cons_width, cons_height, tileset=tileset, title='Map Generation Test'
    ) as context:
        console = tcod.Console(cons_width, cons_height, order='F')
        while int(steps) <=  int(render_steps):
            int(steps) += 1
            console.print(map_obj.x, map_obj.y, map_obj.string)
            context.present(console)

here steps is = 1 and render_steps is an input from the user. Is there a way to update the console so i can change this to: "while true: console print(map..."

Thanks for reading.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source