Skip to main content

Module glyph

Module glyph 

Source
Expand description

The glyph look of an Ask: paints an AskView in a double-bordered box in the middle of the buffer, over whatever is under it. The question is on the first line; under it, the answers in a line with the one in focus as a highlight bar, or the dim line naming the keys that answer. Everything about the look lives here; nothing here decides what the question shows. Another look is another paint of the same view.

Constants§

HEIGHT
Height of the box: its two lines, a blank row above and below, and the border.

Functions§

paint
Paints view in its box (rect) in the middle of buf.
rect
The box view is painted in on buf: as wide as its widest line and a margin of two cells either side, HEIGHT tall, in the middle.