code: def tab(self):
          
          soft_tabs = self.tabstop - ((self._cx // self._cw) % self.tabstop)
          for _ in range(soft_tabs):
              self.putch(" ")
docs: Advances the cursor position to the next (soft) tabstop.