The previous example was wrong and would result in the following
compiler error:
error (type) is not an expression
Just a simple typo, I've changed it to err to correctly reference the
function scoped variable named err.
* docs: creating nested models
* docs: move nested model to example
* docs: add working nested model example
* refactor: use tea.Batch in nested model example
* refactor: switch to composable view example
* refactor: tab select, add padding to boxes, only focused has border
* fix: add padding to timer to remove UI shift
* convert locale string to utf-8 on Windows
* update go.mod
* revert go fmt ./...
* fix(lint): use tabs in GoDoc example code
Co-authored-by: Christian Rocha <christian@rocha.is>
📝 Update folder name in README to `progress-download` as
that is what generates with `go build .`
🙈 Add the files genreated by `go build .` to root `.gitnore`
* docs: clean up readme
* chore: add references
* chore: set to 80 char width
* docs: remove 404 docs link for now + tidy up READMEs
* docs: small language change in README
Co-authored-by: Christian Rocha <christian@rocha.is>
* feat: add bubblezone to readme (closes#368)
- also fixed a handful of grammar-related items in the readme.
Signed-off-by: Liam Stanley <me@liamstanley.io>
* chore: promote BubbleZone to main resource section
Co-authored-by: Christian Rocha <christian@rocha.is>
* doc(textarea): add border to focused textarea in split-editors example
* doc(textrea): tone down with border color in split-editors example
Co-authored-by: Christian Rocha <christian@rocha.is>
* chore: bump bubbles@master
* doc(textarea): Add example of `chat` application with textarea
* doc(textarea): Add example of `textarea` prompting the user to tell a story
* doc(textarea): Add example of `split-editors` on how to manage multiple textareas
* feat: update cancelreader
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: go mod tidy
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: go mod tidy
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: use stable
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* merge Adjective-Object/tea_log_renderer into standard renderer
* rename queuedMessages -> queuedMessageLines & break apart strings during message processing
* delete cursorDownBy
* += 1 -> ++ to make the linter happy
* add skipLines[] tracking back to standard renderer, and add rename skippedLines local to jumpedLines to clarify they are separate comments
* request repaint when a message is recieved
* Convert Println and Printf to commands
* Add package manager example demonstrating tea.Printf
* Use Unix instead of UnixMicro for Go 1.13 support in CI
* fix off by one in std renderer
* add Printf/Println to tea.go
* revert attempt at sequence compression + cursorUpBy
Co-authored-by: Maxwell Huang-Hobbs <mahuangh@microsoft.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
I didn't realise at the time, but the tea.Program and the renderer share
the mutex. This make the code difficult to reason about - it turns out
the program sometimes acquires the lock and then calls the
`setAltScreen` method of the renderer which in turns calls `repaint`.
That causes a deadlock as `repaint` is trying to acquire the lock too.