Separators and Spacing

Termline includes simple helpers for adding blank lines and visual separators in terminal output.

In most cases, you should use the public shortcuts:

Termline.br(count = 1)
Termline.line(count = 8)

Blank Lines

Use br to print one or more blank lines:

Termline.br

This prints a single line break.

You can also pass a custom count:

Termline.br(3)

This prints three line breaks.

Separator Lines

Use line to print a repeated visual separator:

Termline.line

Example output:

-·-     -·-     -·-     -·-     -·-     -·-     -·-     -·-

You can also pass a custom count:

Termline.line(3)

Example output:

-·-     -·-     -·-

Method Signatures

Termline.br(count = 1)
Termline.line(count = 8)

Parameters

count

The number of times the separator pattern should be repeated.

Default values:

Termline.br(1)
Termline.line(8)

Behavior

These helpers:

Internally, these methods delegate to the separator builder, but the recommended public API is to use Termline.br and Termline.line.

Advanced Usage

For most cases, the public shortcuts are the recommended API.

If you need lower-level control or want to generate a custom separator string directly, you can call:

Termline::Space.builder("\n", 3)
Termline::Space.builder("-·-     ", 4)

Examples:

puts Termline::Space.builder("\n", 2)
puts Termline::Space.builder("-·-     ", 5)

Use this only when you need direct access to the internal separator builder. For normal usage, prefer:

Termline.br(2)
Termline.line(5)

Example with Structured Output

Termline.info "Starting deployment"
Termline.line
Termline.success "Dependencies installed"
Termline.success "Database migrated"
Termline.br
Termline.info "Deployment completed"

 Edit this page

Last Update: 2026/03/25