fixed terminal color not resetting
This commit is contained in:
		
							parent
							
								
									fdfa9c9740
								
							
						
					
					
						commit
						976cc75483
					
				| 
						 | 
					@ -55,8 +55,10 @@ pub fn print(
 | 
				
			||||||
        // generate a list of slugs
 | 
					        // generate a list of slugs
 | 
				
			||||||
        let slugs = generate_slug_list(big, forms, &pokedexes, shiny_rate);
 | 
					        let slugs = generate_slug_list(big, forms, &pokedexes, shiny_rate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // print the names of the slugs, separated by comma
 | 
					        // if hide_name is false then print the names of the slugs, separated by comma
 | 
				
			||||||
 | 
					        if !hide_name {
 | 
				
			||||||
            print_name(&slugs);
 | 
					            print_name(&slugs);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // print the actual thing
 | 
					        // print the actual thing
 | 
				
			||||||
        print_colorscripts(&slugs, spacing).unwrap();
 | 
					        print_colorscripts(&slugs, spacing).unwrap();
 | 
				
			||||||
| 
						 | 
					@ -325,5 +327,8 @@ fn print_colorscripts(
 | 
				
			||||||
        println!("{}", line_to_print);
 | 
					        println!("{}", line_to_print);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // reset terminal color by printing a reset code
 | 
				
			||||||
 | 
					    println!("\x1b[0m");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Ok(())
 | 
					    Ok(())
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue