Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to C++ #1

Open
8 of 21 tasks
cjxgm opened this issue Feb 17, 2021 · 0 comments
Open
8 of 21 tasks

Port to C++ #1

cjxgm opened this issue Feb 17, 2021 · 0 comments
Assignees

Comments

@cjxgm
Copy link
Owner

cjxgm commented Feb 17, 2021

Fancy status (Rust version) has the following modules:

  • Main: parses command line and call other modules.
  • Fastup Parser: Parse fastup text to a Document object.
  • Color System: Color representation and perceptually-linear operators.
  • Document Model
    • Text
    • Bold
    • Foreground Color
    • Background Color
    • Widget
  • Builtin Widgets
    • time
    • cpu
    • mem
    • net
    • gradient
  • Builtin Renderers
    • ansi
    • tmux
    • html
    • dump
  • Builtin Outputs
    • stdout
  • Statistics: Gather system information.
  • Unit Tests

The new C++ version will have these modules:

  • prelude: A minimum set of tools to replace the standard library, which is so small that it will be automatically #include-ed to every single compilation unit.
  • config: Command-line argument parsing and storage.
    • parse cmdline.
    • help and version info.
  • fastup: Parse Fastup documents to token trees.
  • renderer: Convert token trees to strings.
    • registry.
    • renderer dump.
    • renderer tty.
    • renderer tmux.
    • renderer html.
  • collect: A d-bus service and client to provide data to the widgets.
  • widget: Opinionated visualizations.
    • color utilities.
    • registry.
    • widget <gradient>.
    • widget <time>.
    • widget <cpu>.
    • widget <mem>.
    • widget <net>.
  • src, i.e. main: Drive the whole system.
@cjxgm cjxgm self-assigned this Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant