(self, srow, scol)
Clear from given position to end of logical line (CTRL+END).
Clear from given position to end of logical line (CTRL+END).
Clear from given position to end of logical line ( CTRL + END ) .
def clear_from(self, srow, scol):
        """Clear from given position to end of logical line (CTRL+END)."""
        end_row = self.find_end_of_line(srow)
        # clear the first row of the logical line
        self._apage.clear_row_from(srow, scol, self._attr)
        # remove the additional rows in the logical line by scrolling up
        for row in range(end_row, srow, -1):
            self.scroll(row)
        self.set_pos(srow, scol)
def clear_from ( self , srow , scol ) : end_row = self . find_end_of_line ( srow ) # clear the first row of the logical line self . _apage . clear_row_from ( srow , scol , self . _attr ) # remove the additional rows in the logical line by scrolling up for row in range ( end_row , srow , - 1 ) : self . scroll ( row ) self . set_pos ( srow , scol )