0.14.2 • Published 1 year ago

microfugue v0.14.2

Weekly downloads
15
License
-
Repository
github
Last release
1 year 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.2

1 year ago

0.14.1

1 year ago

0.14.0

1 year ago

0.13.1

3 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.1

4 years ago

0.12.1

3 years ago

0.11.2

4 years ago

0.12.2

3 years ago

0.12.3

3 years ago

0.10.0

4 years ago

0.8.19

4 years ago

0.8.18

4 years ago

0.8.14

4 years ago

0.8.16

4 years ago

0.8.15

4 years ago

0.8.17

4 years ago

0.8.12

4 years ago

0.8.13

4 years ago

0.8.11

4 years ago

0.8.10

4 years ago

0.8.9

4 years ago

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.1

5 years ago

0.8.2

5 years ago

0.8.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago