Fix typos

This commit is contained in:
Andreas Deininger 2024-08-22 21:13:53 +02:00 committed by Garrett D'Amore
parent 88b9c25c3c
commit 1985c48151
5 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ In `tcell.js`, you also need to change the constant
```js ```js
const wasmFilePath = "yourfile.wasm" const wasmFilePath = "yourfile.wasm"
``` ```
to the file you outputed to when building. to the file you outputted to when building.
## Displaying your project ## Displaying your project
@ -49,7 +49,7 @@ func main() {
To see the webpage with this example, you can type in `localhost:8080/tcell.html` into your browser while `server.go` is running. To see the webpage with this example, you can type in `localhost:8080/tcell.html` into your browser while `server.go` is running.
### Embedding ### Embedding
It is recomended to use an iframe if you want to embed the app into a webpage: It is recommended to use an iframe if you want to embed the app into a webpage:
```html ```html
<iframe src="tcell.html" title="Tcell app"></iframe> <iframe src="tcell.html" title="Tcell app"></iframe>
``` ```

View File

@ -33,7 +33,7 @@ A brief, and still somewhat rough, [tutorial](TUTORIAL.md) is available.
- [godu](https://github.com/viktomas/godu) - utility to discover large files/folders - [godu](https://github.com/viktomas/godu) - utility to discover large files/folders
- [tview](https://github.com/rivo/tview/) - rich interactive widgets - [tview](https://github.com/rivo/tview/) - rich interactive widgets
- [cview](https://code.rocketnine.space/tslocum/cview) - user interface toolkit (fork of _tview_) - [cview](https://code.rocketnine.space/tslocum/cview) - user interface toolkit (fork of _tview_)
- [awsome gocui](https://github.com/awesome-gocui/gocui) - Go Console User Interface - [awesome gocui](https://github.com/awesome-gocui/gocui) - Go Console User Interface
- [gomandelbrot](https://github.com/rgm3/gomandelbrot) - Mandelbrot! - [gomandelbrot](https://github.com/rgm3/gomandelbrot) - Mandelbrot!
- [WTF](https://github.com/senorprogrammer/wtf) - personal information dashboard - [WTF](https://github.com/senorprogrammer/wtf) - personal information dashboard
- [browsh](https://github.com/browsh-org/browsh) - modern web browser ([video](https://www.youtube.com/watch?v=HZq86XfBoRo)) - [browsh](https://github.com/browsh-org/browsh) - modern web browser ([video](https://www.youtube.com/watch?v=HZq86XfBoRo))

View File

@ -23,7 +23,7 @@ package base
import ( import (
// The following imports just register themselves -- // The following imports just register themselves --
// thse are the terminal types we aggregate in this package. // these are the terminal types we aggregate in this package.
_ "github.com/gdamore/tcell/v2/terminfo/a/ansi" _ "github.com/gdamore/tcell/v2/terminfo/a/ansi"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt100" _ "github.com/gdamore/tcell/v2/terminfo/v/vt100"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt102" _ "github.com/gdamore/tcell/v2/terminfo/v/vt102"

View File

@ -28,7 +28,7 @@ type Spacer struct {
// Draw is called to update the displayed content. // Draw is called to update the displayed content.
func (*Spacer) Draw() {} func (*Spacer) Draw() {}
// Size always returns 0, 0, since no size is ever *requird* to display nothing. // Size always returns 0, 0, since no size is ever *required* to display nothing.
func (*Spacer) Size() (int, int) { func (*Spacer) Size() (int, int) {
return 0, 0 return 0, 0
} }

View File

@ -169,7 +169,7 @@ type EventWidgetResize struct {
widgetEvent widgetEvent
} }
// EventWidgetMove is fired whenver a widget changes location. // EventWidgetMove is fired whenever a widget changes location.
type EventWidgetMove struct { type EventWidgetMove struct {
widgetEvent widgetEvent
} }