    def get_scroll_pos(self):
        """
        Get current position for scroll bar.
        """
        if self._canvas.height >= self._max_height:
            return 0
        return self._canvas.start_line / (self._max_height - self._canvas.height + 1)
Get current position for scroll bar.
asciimatics/widgets/frame.py