<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_fore( self, x: int, y: int, r: int, g: int, b: int, char: str ) -> None: """Set the character and foreground color of one cell. Args: x (int):
 X position to change. y (int):
 Y position to change. r (int):
 Red foreground color, from 0 to 255. g (int):
 Green foreground color, from 0 to 255. b (int):
 Blue foreground color, from 0 to 255. char (AnyStr):
 A single character str or bytes object. """

        i = self.width * y + x
        self.fore_r[i] = r
        self.fore_g[i] = g
        self.fore_b[i] = b
        self.char[i] = ord(char)