Drawing in "colored text mode" - for use in TUIs

Open
#343 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
rust

Research direction

Start by reviewing ggsql's existing rendering path and how it could expose a string-producing output format. Read the linked incplot example for the proposed ANSI, braille, and Unicode terminal output. Done means the project has an agreed design and supports compact colored text plots rendered to a string.

Written by the indexing model from the issue text.

Description

writer

In this era where TUIs are getting a revival, I wonder if ggsql can / could / should support hooking into the rendering to support output compact text plots suitable for display in terminals, ie compact unicode output using ansi escapes, braille and unicode drawing chars for monospaced terminal like output formats (render to a string).

For example ansi-escaped and colored output such as shown at https://incom-0.github.io/incplot/. There are many other text plot libraries out there I suppose, just mentioning https://github.com/InCom-0/incplot as one example.

Dominant language
Rust
Stars
575
Forks
33
Avg merge
7d 18h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/ggsql

All issues in posit-dev/ggsql

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.