% gotelemetry on
Telemetry uploading is now enabled and data will be periodically sent to https://telemetry.go.dev/. Uploaded data is used to help improve the Go toolchain and related tools, and it will be published as part of a public dataset.
For more details, see https://telemetry.go.dev/privacy.
This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy).
To disable telemetry uploading, but keep local data collection, run “gotelemetry local”.
To disable both collection and uploading, run “gotelemetry off“.
%
Those are some very long lines. Here is a better output (also slightly reworded):
% gotelemetry on
Telemetry uploading is now enabled.
Data will be sent periodically to https://telemetry.go.dev/.
Uploaded data is used to help improve the Go toolchain and related tools,
and it will be published as part of a public dataset.
For more details, see https://telemetry.go.dev/privacy.
This data is collected in accordance with the Google Privacy Policy
(https://policies.google.com/privacy).
To disable telemetry uploading, but keep local data collection, run “gotelemetry local”.
To disable both collection and uploading, run “gotelemetry off“.
%
Comment From: rsc
Note that there is no need to do fancy wrapping or tty checks. Just hard-code something that looks reasonable in a reasonably-sized terminal.
Comment From: cagedmantis
Comment From: gopherbot
Change https://go.dev/cl/595956 mentions this issue: cmd/gotelemetry: wrap output to 80 columns