code: def _highlight_cursorlines(self, cli, new_screen, cpos, x, y, width, height):
          
          cursor_line_token = (':', ) + self.cursorline_token
          cursor_column_token = (':', ) + self.cursorcolumn_token
  
          data_buffer = new_screen.data_buffer
  
          # Highlight cursor line.
          if self.cursorline(cli):
              row = data_buffer[cpos.y]
              for x in range(x, x + width):
                  original_char = row[x]
                  row[x] = _CHAR_CACHE[
                      original_char.char, original_char.token + cursor_line_token]
  
          # Highlight cursor column.
          if self.cursorcolumn(cli):
              for y2 in range(y, y + height):
                  row = data_buffer[y2]
                  original_char = row[cpos.x]
                  row[cpos.x] = _CHAR_CACHE[
                     original_char.char, original_char.token + cursor_column_token]
  
          # Highlight color columns
          for cc in self.get_colorcolumns(cli):
              assert isinstance(cc, ColorColumn)
              color_column_token = (':', ) + cc.token
              column = cc.position
  
              for y2 in range(y, y + height):
                  row = data_buffer[y2]
                  original_char = row[column]
                  row[column] = _CHAR_CACHE[
                     original_char.char, original_char.token + color_column_token]
docs: Highlight cursor row/column.