What do you mean, MacOS? I use a Mac and have no idea how to do this.
I've tried using it for this exact thing, and it doesn't work that well with terminal screenshots. You have to carefully read the output and fix it manually, but at least it's better than typing it all out by hand.