# Path: icon.py
# ROW_LENGTH = 16
# 
# Path: init.py
# FONT_FILE_PATH = os.path.join('fonts', 'terminal16x16_gs_ro.png')


import colors
import frame
import settings
import libtcodpy as libtcod
from icon import ROW_LENGTH
from init import FONT_FILE_PATH
    def get_symbol(self, position):
        x, y = position
        return libtcod.console_get_char(x, y)

    def get_default_color_fg(self):
        return libtcod.console_get_default_foreground(0)

    def get_default_color_bg(self):
        return libtcod.console_get_default_background(0)

    def set_default_color_fg(self, color, console=0):
        self._default_color_fg = color
        libtcod.console_set_default_foreground(console, color)

    def set_default_color_bg(self, color, console=0):
        self._default_color_bg = color
        libtcod.console_set_default_background(console, color)

    def set_symbol(self, position, icon, console=0):
        x, y = position
        libtcod.console_set_char(console, x, y, icon)

    def set_color_fg(self, position, color, console=0):
        x, y = position
        libtcod.console_set_char_foreground(console, x, y, color)

    def set_color_bg(self, position, color, effect=libtcod.BKGND_SET, console=0):
        x, y = position
        libtcod.console_set_char_background(console, x, y, color, effect)


# Path: icon.py
# ROW_LENGTH = 16
# 
# Path: init.py
# FONT_FILE_PATH = os.path.join('fonts', 'terminal16x16_gs_ro.png')


# Path: console.py
import colors
import frame
import settings
import libtcodpy as libtcod
from icon import ROW_LENGTH
from init import FONT_FILE_PATH

    def get_symbol(self, position):
        x, y = position
        return libtcod.console_get_char(x, y)

    def get_default_color_fg(self):
        return libtcod.console_get_default_foreground(0)

    def get_default_color_bg(self):
        return libtcod.console_get_default_background(0)

    def set_default_color_fg(self, color, console=0):
        self._default_color_fg = color
        libtcod.console_set_default_foreground(console, color)

    def set_default_color_bg(self, color, console=0):
        self._default_color_bg = color
        libtcod.console_set_default_background(console, color)

    def set_symbol(self, position, icon, console=0):
        x, y = position
        libtcod.console_set_char(console, x, y, icon)

    def set_color_fg(self, position, color, console=0):
        x, y = position
        libtcod.console_set_char_foreground(console, x, y, color)

    def set_color_bg(self, position, color, effect=libtcod.BKGND_SET, console=0):
        x, y = position
        libtcod.console_set_char_background(console, x, y, color, effect)


    def print_text(self, position, text):