code: def drawRightStatus(self, scr, vs):
          'Draw right side of status bar.  Return length displayed.'
          rightx = self.windowWidth-1
  
          ret = 0
          for rstatcolor in self.callHook('rstatus', vs):
              if rstatcolor:
                  try:
                      rstatus, coloropt = rstatcolor
                      rstatus = ' '+rstatus
                      attr = colors.get_color(coloropt).attr
                      statuslen = clipdraw(scr, self.windowHeight-1, rightx, rstatus, attr, rtl=True)
                      rightx -= statuslen
                      ret += statuslen
                  except Exception as e:
                      self.exceptionCaught(e)
  
          if scr:
              curses.doupdate()
          return ref drawRightStatus(self, scr, vs):
          'Draw right side of status bar.  Return length displayed.'
          rightx = self.windowWidth-1
  
          ret = 0
          for rstatcolor in self.callHook('rstatus', vs):
              if rstatcolor:
                  try:
                      rstatus, coloropt = rstatcolor
                      rstatus = ' '+rstatus
                      attr = colors.get_color(coloropt).attr
                      statuslen = clipdraw(scr, self.windowHeight-1, rightx, rstatus, attr, rtl=True)
                      rightx -= statuslen
                      ret += statuslen
                  except Exception as e:
                      self.exceptionCaught(e)
  
          if scr:
              curses.doupdate()
          return ret
docs: Draw right side of status bar.  Return length displayed.