/**
 * @license
 * Copyright 2022-2026 Greg Lauckhart <greg@lauckhart.com>
 * SPDX-License-Identifier: Apache-2.0
 */
import { stderr, stdout } from "node:process";
import { Printer } from "./printer.js";
import { ansi } from "./text-builder.js";
import { TextWriter } from "./text-writer.js";
const DEFAULT_WRAP_PREFIX = `  ${ansi.dim}\u2937${ansi.not.dim} `;
var std;
((std2) => {
  std2.out = Printer(new TextWriter((text) => stdout.write(text), { terminalWidth: stdout.columns }), {
    wrap: { wrapPrefix: DEFAULT_WRAP_PREFIX, preserveSpace: true }
  });
  std2.err = Printer(new TextWriter((text) => stderr.write(text), { terminalWidth: stderr.columns }), {
    wrap: { wrapPrefix: DEFAULT_WRAP_PREFIX, preserveSpace: true }
  });
})(std || (std = {}));
export {
  std
};
//# sourceMappingURL=std.js.map
