Skip to content

Commit

Permalink
Merge pull request #9 from ncmreynolds/dev
Browse files Browse the repository at this point in the history
Fix memory leak
  • Loading branch information
ncmreynolds authored Jul 18, 2024
2 parents a5b428b + 0714b28 commit c84dc91
Show file tree
Hide file tree
Showing 6 changed files with 711 additions and 307 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

examples/Example04_singleButton/debug.cfg
examples/Example04_singleButton/debug_custom.json
examples/Example04_singleButton/esp32s2.svd
examples/Example10_oneTextLog/debug.cfg
examples/Example10_oneTextLog/debug_custom.json
examples/Example10_oneTextLog/esp32s2.svd
13 changes: 13 additions & 0 deletions documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## Version 0.1.4

- New methods
- `void setScrollUpCallback(void (*scrollUpCallback)(uint8_t))`, which allows you to set a callback function for scrolling up the content of widgets. The argument supplied to the callback function is the widget ID of the scrolled widget. This is for when the application needs to feed new content to the bottom of the widget as it's not in memory. Normally this would be used for a `textLog` and the content added with `appendWidgetContent`.
- `void setScrollDownCallback(void (*scrollDownCallback)(uint8_t))`, similar to the callback for scrolling widget content up. Normally this would be used for a `textLog` and the content added with `prependWidgetContent`.
- Experimental: Putting a tab `\t` at the start of an option in a `listBox` makes that row unclickable. These unclickable rows can be blank, just `\t\n`. Useful for formatting the `listBox` with a heading/dividers of sorts. Ugly code needs fixing.
- Experimental: You can add options to a `listBox` with `appendWidgetContent`. This is inefficient but it _does_ work.

- Bugfixes
- Widgets created without attributes specified were created with 'default attributes', not 'default **widget** attributes'.
- Improve redraw of `textLog` widgets, which previously failed to hide the cursor.
- Improved rendering of text in `textDisplay` so that it should no longer end up with redundant spaces at the beginning of lines.

## Version 0.1.3

- New methods
Expand Down
4 changes: 4 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ houseKeeping KEYWORD2
probeSize KEYWORD2
columns KEYWORD2
lines KEYWORD2
setColumns KEYWORD2
setLines KEYWORD2
probeType KEYWORD2
type KEYWORD2

Expand Down Expand Up @@ -56,6 +58,8 @@ mouseButtonDown KEYWORD2
mouseButtonUp KEYWORD2
mouseWheelDown KEYWORD2
mouseWheelUp KEYWORD2
setScrollUpCallback KEYWORD2
setScrollDownCallback KEYWORD2

//Boxes
drawBox KEYWORD2
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=retroTerm
version=0.1.3
version=0.1.4
author=Nick Reynolds,[email protected]
maintainer=Nick Reynolds,[email protected]
sentence=A library for creating GUI-esque interfaces in a terminal emulator with a microcontroller.
Expand Down
Loading

0 comments on commit c84dc91

Please sign in to comment.