setTabStops method

void setTabStops(
  1. int width
)

Sets tab stop positions based on the given terminal width.

Pass a negative value to disable tab stops. On Linux consoles, tab stops are always disabled.

Implementation

void setTabStops(int width) {
  if (width < 0 || _term.startsWith('linux')) {
    _caps &= ~_Cap.ht;
    _tabs = null;
    return;
  }
  _caps |= _Cap.ht;
  _tabs = TabStops.defaults(width);
}