def prettyprintparam(self, start, end):
        """
            start : int
                location of the start of the match array entry in the self.line array
                
            end : int
                location of the end of the match array, relative tothe self.line array
            
            returns : none
            
            some way to nicely format the output, since we are on a dos command line
            let's not get too fancy and just colour the H and T
        """
        for i, row in enumerate(self.line.flat):
            i = i + 1
            color = self.colour_map[row]        
            if (not (sys.platform == 'linux2')):
                windll.Kernel32.SetConsoleTextAttribute(self.h, color)
                if i == 0:
                    sys.stdout.write("\n%s"%(self.toss_map[row]))
                elif (i % self.screen_width == 0) :
                    if (i >= start+1 and i <= (start+end)):
                        # 13 purple, also nice, green 2 default
                        windll.Kernel32.SetConsoleTextAttribute(self.h, 2)
                        sys.stdout.write(" %s\n"%(self.toss_map[row]))
                        windll.Kernel32.SetConsoleTextAttribute(self.h, color)
                    else:
                        sys.stdout.write(" %s\n"%(self.toss_map[row])) 
                        sys.stdout.flush()
                elif (i >= start+1 and i <= (start+end)):
                    # 13 purple, also nice, green 2 default
                    windll.Kernel32.SetConsoleTextAttribute(self.h, 2)
                    sys.stdout.write(" %s"%(self.toss_map[row]))
                    windll.Kernel32.SetConsoleTextAttribute(self.h, color)
                else:
                    sys.stdout.write(" %s"%(self.toss_map[row]))
                    
        if (not (sys.platform == 'linux2')):windll.Kernel32.SetConsoleTextAttribute(self.h, 15) # return to white        

            start : int
                location of the start of the match array entry in the self.line array
                
            end : int
                location of the end of the match array, relative tothe self.line array
            
            returns : none
            
            some way to nicely format the output, since we are on a dos command line
            let's not get too fancy and just colour the H and T
        
recipes/Python/578779_Find_largest_run_Heads_or_Tails/recipe-578779.py