isAnsi
isAnsi
Was out today, and decided to mess with a function, and get it working just the way I wanted. Now, I can either feed isAnsi a single argument, and it will return 'true' if either foreground or background colour of the selected text matched, or if I feed it two arguments, it will return 'true' if the first one matches the FG, and the second matches the BG. It's nothing special, but if you find yourself doing a lot of 'isAnsiFgColor() and isAnsiBgColor()' or similar logical tests, it can be quite useful!