Adam Bozanich
beb254a9ac
viewport: truncate size to area avaiable in parent ( #153 )
...
* viewport: truncate size to area avaiable in parent
* boxlayout: handle widget removal
2021-09-26 09:38:46 -07:00
ramachandrasuresh
66f061b1fc
patch for mouse events not working in putty ( #477 )
...
Co-authored-by: Suresh Ramachandra <suresh.ramachandra@intelerad.com>
2021-09-26 09:29:09 -07:00
dependabot[bot]
b9b74429a8
Bump golang.org/x/text from 0.3.6 to 0.3.7 ( #478 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.6...v0.3.7 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-26 09:18:31 -07:00
Alexander Tumin
2f3199b286
Add NewTerminfoScreenFromTtyTerminfo to allow creating Screen using ( #479 )
...
custom terminfo as well as custom tty.
2021-09-26 09:17:45 -07:00
dependabot[bot]
edd0f2f203
Bump actions/setup-go from 2.1.3 to 2.1.4 ( #483 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2.1.3...v2.1.4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-26 09:15:51 -07:00
Spenser Black
634d607d68
Name return values for `Screen.Size` ( #487 )
...
This adds names to the return values of the Size function to add
context. This also changes the return declarations to use the shortcut
when both named return values are the same type, by only specifying the
type once.
2021-09-26 09:15:22 -07:00
Garrett D'Amore
f057f0a857
fixes #480 EventError fired after suspended Screen resumes ( #484 )
2021-09-04 17:28:22 -07:00
Garrett D'Amore
4e564d2402
Modernize shields.
...
This references the GitHub workflows, and eliminates the goreportcard
which appears to be defunct now.
2021-09-03 21:47:58 -07:00
Kyle Prifogle
73703f7ed4
Adding some small tcell repos I threw together ( #481 )
2021-08-28 13:16:08 -07:00
dependabot[bot]
843fc86ebf
Bump github.com/mattn/go-runewidth from 0.0.10 to 0.0.13 ( #474 )
...
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth ) from 0.0.10 to 0.0.13.
- [Release notes](https://github.com/mattn/go-runewidth/releases )
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.10...v0.0.13 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 07:50:20 -07:00
dependabot[bot]
c54c4c65c2
Bump github.com/lucasb-eyer/go-colorful from 1.0.3 to 1.2.0 ( #475 )
...
Bumps [github.com/lucasb-eyer/go-colorful](https://github.com/lucasb-eyer/go-colorful ) from 1.0.3 to 1.2.0.
- [Release notes](https://github.com/lucasb-eyer/go-colorful/releases )
- [Changelog](https://github.com/lucasb-eyer/go-colorful/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lucasb-eyer/go-colorful/compare/v1.0.3...v1.2.0 )
---
updated-dependencies:
- dependency-name: github.com/lucasb-eyer/go-colorful
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 07:47:41 -07:00
dependabot[bot]
917282dd89
Bump golang.org/x/text from 0.3.0 to 0.3.6 ( #476 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.0 to 0.3.6.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.0...v0.3.6 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 07:46:31 -07:00
Matthieu MOREL
f9a5280328
Set up Dependabot ( #470 )
...
* Create dependabot.yml
* Update dependabot.yml
2021-07-29 07:31:06 -07:00
Garrett D'Amore
0b75e1e09e
Add new workflows.
2021-07-17 11:27:57 -07:00
Garrett D'Amore
5d53415eb8
Fix links to tslocum's packages. Add link to tutorial from readme.
2021-07-17 11:11:35 -07:00
Garrett D'Amore
0de353bdce
Convert documentation to Markdown.
...
While asciidoc is probably technically more flexible, some sites
(such as pkg.go.dev) do not support it well. For the basic docs
we have here, the extra richness from asciidoc is not needed, and
we would prefer not to sacrifice the broader support that MarkDown
enjoys.
While here the text was cleaned up, made consistent, with grammar
and spelling fixes.
The Tutorial was revised somewhat to provide more accurate guidance
for readers.
2021-07-17 11:04:43 -07:00
eNV25
b60a903b98
Add Screen.ChannelEvents v2 ( #465 )
2021-06-11 19:43:12 -07:00
Garrett D'Amore
7946eb8e8d
Wait for output to drain.
...
Hopefully this fixes unpredicatable output when the program is stopping.
2021-06-10 07:33:55 -07:00
Garrett D'Amore
65821462b5
Close the tty device when finishing.
2021-06-10 06:55:56 -07:00
Garrett D'Amore
15d485cfb5
Add a stdin version of Tty, and handle unset terminal sizes sanely.
2021-06-07 12:58:03 -07:00
Garrett D'Amore
da8f2067c0
Reset colors to default on suspend.
...
For most terminals this also is done with 'sgr0', but on some it
appears that we need to explicitly use the 'oc' capability. (This
is the documented behavior in terminfo.)
2021-06-05 05:36:16 -07:00
Will Daly
b7e369fb8d
Add aretext to the list of examples in the README
...
Aretext is a minimalist text editor with vim key bindings.
2021-06-05 05:30:19 -07:00
Hubert Hirtz
0fb69aed47
Add support for the foot terminal
...
https://codeberg.org/dnkl/foot
2021-06-05 05:29:41 -07:00
Garrett D'Amore
4f213fd72d
Make sun-color 256 color by default, and just drop the sun-256color.
2021-06-01 20:43:32 -07:00
Garrett D'Amore
dcf5866e16
Permit a different device node to be used as /dev/tty.
2021-06-01 18:59:24 -07:00
Garrett D'Amore
d8ae9d764a
Add xterm-direct, which gives 24-bit color.
2021-06-01 14:36:48 -07:00
Garrett D'Amore
cad1b2a3f3
Add sun-256color as a builtin.
2021-05-31 18:08:06 -07:00
Garrett D'Amore
3687c97d3d
Sun terminal color fixes.
...
This addresses problems in the color handling found on Sun and illumos
consoles. The infocmp for these terminals is buggy as well.
2021-05-31 17:59:55 -07:00
Garrett D'Amore
c43eafe245
Fix for writing in last column of last line for automargin terminals.
2021-05-18 23:17:00 -07:00
Garrett D'Amore
a3de596932
Fabricate entries for -256color if they don't exist (xterm colors)
2021-05-18 20:20:43 -07:00
Garrett D'Amore
5c5a66e2b0
fix panic on resize (regression)
2021-05-16 11:38:02 -07:00
Garrett D'Amore
f0385f8cb3
Use https for goreportcard.
2021-05-16 09:39:53 -07:00
Garrett D'Amore
7a0b45cce0
fixes #422 RFE: Handling events in batches
2021-05-16 09:21:17 -07:00
Garrett D'Amore
0bfa151864
fixes #460 Possible race condition between Fini and PollEvent
2021-05-16 09:04:18 -07:00
Yon
876e1fdeb5
Add gruid-tcell to the list of examples in the README
...
gruid-tcell is a tcell-based driver for the grid-based UI and game
framework gruid.
2021-05-16 08:42:56 -07:00
Garrett D'Amore
97c0480839
fixes #452 Lost a key event once when exiting or suspending in v2.2.1.
...
fixes #449 Lost keyboard input after suspend on Windows 10 PowerShell
fixes #148 Make tcell usable with any io.Reader and io.Writer
This introduces a new Tty interface so that applications can supply
their own implementation. This should facilitate work for applications
that wish to provide e.g. a webasm version of the terminal, or that need
to use different kinds of file plumbing.
2021-05-16 08:27:27 -07:00
Spenser Black
8f925d8272
Implement FromImageColor
...
Converts from `image/color.Color` to `tcell.Color`.
2021-05-11 12:36:10 -07:00
Garrett D'Amore
299cb413dc
Add a sample style to hello world.
2021-04-18 12:26:17 -07:00
Garrett D'Amore
0c349a85f4
Remove stale (unused) code in Windows finish.
2021-04-18 12:05:27 -07:00
Garrett D'Amore
fb06997fe2
fixes #445 Prompt Cursor Lost after Suspend v2.2.0 Windows PowerShell
2021-04-18 12:04:21 -07:00
Garrett D'Amore
356d48f50a
Fix link display. Thanks to @noborus.
2021-04-18 11:54:14 -07:00
Graham Clark
1febfd418d
Add tmux-wormhole to the list of tcell-dependent apps
...
I published this yesterday on github. It's a tmux plugin that scrapes
the active tmux pane for a magic wormhole code, then downloads and
optionally opens the file tied to the code. I wrote this to make it
easier to get pcaps from termshark into Wireshark. This plugin uses
gowid which itself depends wholly on tcell to manipulate the
terminal. Link: https://github.com/gcla/tmux-wormhole
2021-04-18 11:52:41 -07:00
Noboru Saito
7694d90821
Change to /dev/tty because term.GetState fails
...
The file descriptor of "os.Stdin"
may cause term.GetState to be an error.
2021-04-18 11:50:21 -07:00
Gokcehan
14c5375ccc
send enter_keypad during terminal engage
2021-04-18 11:38:12 -07:00
Gokcehan
d003d0a0a1
switch back to ca mode after suspend/resume
...
Suspend call currently exits ca mode. So after the first suspend/resume
the program does not use the alternate screen anymore. Therefore Resume
needs to enter ca mode again.
2021-04-18 11:38:12 -07:00
bobo liu
e37d20eeec
fixes PollEvent() hung after Fini() on windows
2021-04-18 11:31:00 -07:00
Noboru Saito
f4d402906f
Added terminal pager ov to examples
2021-03-04 22:05:00 -08:00
Garrett D'Amore
c94849e7d5
Remove go1.11 from travis matrix.
2021-02-20 13:28:15 -08:00
Adrian Hesketh
68b5c49fcb
Add https://github.com/a-h/min to the examples
2021-02-20 13:27:38 -08:00
Garrett D'Amore
16556370d7
Support for new Suspend and Resume API.
...
fixes #194 Starting multiple screen sessions (lost key event)
You can test this by using the mouse demo, which now supports pressing
CTRL-Z. This does not actually suspend the demo, but starts a subshell
which takes over. After the subshell is exited, the demo takes control
of the screen back. This can be done multiple times, and it is possible
to start multiple "nested" iterations of the demo this way.
2021-02-20 13:20:58 -08:00