0.14.1 • Published 6 days ago

microfugue v0.14.1

Weekly downloads
15
License
-
Repository
github
Last release
6 days ago

microfugue

a small library for creating UX elements in ansi-compatible terminals, using antsy.

  • EditBox: a text editor which supports most basic unix line-editing control codes, and hooks for syntax highlighting and validation. it can be used as a multi-line editor where "enter" inserts new lines, or as a "readline" style command editor, where "enter" commits a line to the command history, and an AsyncIterator provides the command lines.

  • LogView: renders an antsy Canvas full of lines of RichText. lines are appended at the bottom. can be limited to storing a limited number of historical lines. lines are optionally word-wrapped.

  • RichText: text model consisting of (possibly nested) spans of text with a color attribute. can parse a simple format like "this is {f00:red}" or you can generate the spans yourself.

  • ScrollView: fills an antsy Region with the contents of a Canvas (like LogView) that can be scrolled vertically.

  • StatusBar: displays a one-line status bar, where the left and right half can be updated independently.

  • Form: a layout of input elements (text, buttons, checkboxes, selection lists, and edit boxes) with validation and navigation. a left column labels each row, and each row can be a single element, or a packed line of elements (like three buttons).

to-do

  • shift-arrow, etc to mark text in an edit box (mwuhaha)
  • C-c, C-v, C-x, C-z in an edit box
0.14.1

6 days ago

0.14.0

1 month ago

0.13.1

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.12.1

2 years ago

0.11.2

2 years ago

0.12.2

2 years ago

0.12.3

2 years ago

0.10.0

3 years ago

0.8.19

3 years ago

0.8.18

3 years ago

0.8.14

3 years ago

0.8.16

3 years ago

0.8.15

3 years ago

0.8.17

3 years ago

0.8.12

3 years ago

0.8.13

3 years ago

0.8.11

3 years ago

0.8.10

3 years ago

0.8.9

3 years ago

0.8.8

3 years ago

0.8.7

3 years ago

0.8.6

3 years ago

0.8.5

3 years ago

0.8.4

3 years ago

0.8.3

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago