chjj / blessed

A high-level terminal interface library for node.js.
Other
11.2k stars 528 forks source link

Margins? #395

Open echo-bravo-yahoo opened 4 years ago

echo-bravo-yahoo commented 4 years ago

I'm trying to make a "card" list of sorts and I'd really like to be able to simultaneously use border, padding, and margins within a layout, but margins don't appear to exist, so I've tried several ways of flubbing it, all of which seem quite difficult. Right now, I have a decent workaround involving a custom component (that renders these things itself using fillRegion and pads the text appropriately so it's still visible) but the hover on it doesn't work because hover highlighting doesn't hover padding. What's a good way to approach this?