I'm writing a small program that needs to wrap text to produce multi column output on a terminal screen. This is fairly straightforward, except for having to account for hard tabs, which I cannot do without knowing what the tab stop settings are. Is there a way to query for tab stop settings? On OSX the
tabs command appears to set tabs, but doesn't seem to report them. I can possibly parse
infocmp output for the
it value, but that seems to be just the default tab width, which may or may not line up with the full set of tab stops.
Is there a canonical way of pulling the tab stop settings on unix-like terminals? On Windows?