Skip to content

Commit

Permalink
Adding mouse info (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly authored Oct 7, 2024
1 parent d92cad2 commit 55bf982
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The implementations currently is a wrapper fully encapsulating (our fork of) [x/
## fortio.org/terminal/ansipixels
[![Go Reference](https://pkg.go.dev/badge/fortio.org/terminal/ansipixels.svg)](https://pkg.go.dev/fortio.org/terminal/ansipixels)

A much lower level library that allow direct control of both the input and the output of the terminal.
A much lower level library that allow direct control of both the input and the output of the terminal, including mouse tracking, clicks, drag events and modifiers decoding/querying.


## FPS
Expand Down Expand Up @@ -95,7 +95,7 @@ flags:

## Game of life

See [life/](life/) for a classic Conway's game of life black and white demo (with resizing supported etc...).
See [life/](life/) for a classic Conway's game of life black and white demo (with resizing, mouse edits, etc... supported).

Same installation as above, just replace `fps` by `life`.

Expand Down
15 changes: 11 additions & 4 deletions life/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Game of life demo using Ansipixels.

You now can use the mouse to add at any time.

![screenshot](life.png)

## Install/run
Expand All @@ -14,15 +16,20 @@ go run fortio.org/terminal/life@latest
## Usage

```
life 0.19.0 usage:
life 0.25.0 usage:
life [flags]
or 1 of the special arguments
life {help|envhelp|version|buildinfo}
flags:
-fill float
Random fill factor (0 to 1) (default 0.1)
Random fill factor (0 to 1) (default 0.1)
-fps float
Frames per second (default 60)
Frames per second (default 60)
-glider
Start with a glider (default is random)
Start with a glider (default is random)
-loglevel level
log level, one of [Debug Verbose Info Warning Error Critical Fatal] (default Info)
-nomouse
Disable mouse tracking
```

0 comments on commit 55bf982

Please sign in to comment.