VincentFoulon80 / console_engine

A simple terminal framework to draw things and manage user input
https://crates.io/crates/console_engine
MIT License
220 stars 7 forks source link

Rectangles with cool box-drawed borders #11

Closed LaineZ closed 3 years ago

LaineZ commented 3 years ago

The rect_border() function allows to draw rects with styled border (useful for box-drawing symbols).

There is some built-in rect styles (check the styled-rect example)

Styled-borders

Also, developer can create a custom style struct with BorderStyle::new() respectively.

VincentFoulon80 commented 3 years ago

Awesome work @LaineZ ! 😄 This was on my to-do list for a while but never had the time to delve into it seriously. I was planning to use enums instead of a struct but the idea is the same.

I'm deploying a new version for your PR 🙂