(self, changed, *misc)
This method is a wrapper to display some text on stdscr.

        misc is a list that should consist of 3-tuples which holds
        text to display.
        (1st element: y-coordinate, 2nd: x-coordinate, 3rd: text)
This method is a wrapper to display some text on stdscr.
This method is a wrapper to display some text on stdscr .
def draw_text(self, changed, *misc):
        '''This method is a wrapper to display some text on stdscr.

        misc is a list that should consist of 3-tuples which holds
        text to display.
        (1st element: y-coordinate, 2nd: x-coordinate, 3rd: text)

        '''

        if changed is True:
            cur_dir = self.cur_dir + '*'
        else:
            cur_dir = self.cur_dir
        try:
            self.stdscr.clear()
            self.stdscr.addstr(
                0, 0, self.loginname + '@' + self.hostname + ':',
                cur.color_pair(2))
            self.stdscr.addstr(
                0, len(self.loginname + '@' + self.hostname + ':'),
                cur_dir)
            for i, j, k in misc:
                self.stdscr.addstr(i, j, k)
        except:  # to prevent a crash if screen is small
            pass
        finally:
            self.stdscr.refresh()
def draw_text ( self , changed , * misc ) : if changed is True : cur_dir = self . cur_dir + '*' else : cur_dir = self . cur_dir try : self . stdscr . clear ( ) self . stdscr . addstr ( 0 , 0 , self . loginname + '@' + self . hostname + ':' , cur . color_pair ( 2 ) ) self . stdscr . addstr ( 0 , len ( self . loginname + '@' + self . hostname + ':' ) , cur_dir ) for i , j , k in misc : self . stdscr . addstr ( i , j , k ) except : # to prevent a crash if screen is small pass finally : self . stdscr . refresh ( )