Coder Social home page Coder Social logo

foxglove's Introduction

1. What is Foxglove? ๐ŸŒท

Foxglove is an aesthetic and highly-configurable python-based terminal rendering support library with an accompanying custom frame definition language. Consider this a personalized alternative to Urwid with features customized to my use cases only.

2. What is Bouquet? ๐Ÿ’

.bqt is a plaintext custom frame definition language with support for variable sizing. Bouquet frames ignore all standard English-language alphabetic characters [a-zA-Z] except for [AaBbCcLlX], which are reserved for renderer or interpreter instructions. Bouquet intentionally requires all alphabetic characters to be inserted during runtime using .fill() (!!!TBD!!!). The following characters have special meanings:

  • A|a and B|b define strictly-rectangular text regions.
    • A, a, B, and b do not connect to each other.
    • AABBBAAA will generate three independent numbered text frames.
    • A and B hard cut. Printing Hello world! to AAAAAA yields Hello .
    • a and b soft cut. Printing Hello world! to aaaaaa yields Hel....
    • Multi-line regions text-wrap by default.
  • L|l is an alternative to the AaBb format for a multi-line list region.
  • X is a smart division and expansion character. We call an orthogonal line of Xs a "cut."
    • Cuts must be drawn in axis lines across the canvas. These may intersect and you may have multiple in the same axis.
    • Cuts reference the characters to their left/up to repeat the edge of a frame region to expand it to variable sizing.
    • If you don't want vertical resizing, don't have a horizontal cut.
    • Config in the form X:Y:Z can allow for biased expansion, handing out repeats in those proportions.
    • Expansions are Bouquet-only. They do not repeat printed text.
    • โ•”โ•Xโ• expands to โ•”โ•โ•โ•...โ•โ•.

foxglove's People

Contributors

tetraketra avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.