color

The .color command controls whether rsql outputs color text in the terminal. Color output improves readability, especially for large result sets or when distinguishing between different types of output. By default, color is enabled.

Usage

.color <on|off>

When to use

  • Enable color (on) for interactive use, demos, or when you want visually distinct output.
  • Disable color (off) for scripts, logs, or when redirecting output to files where ANSI codes are undesirable.

Examples

Show the current color setting:

.color

Enable color output:

.color on

Disable color output:

.color off

Troubleshooting

  • If you see strange characters in redirected output, try .color off.
  • Some terminals may not support color; in that case, disabling color is recommended.

Demonstration