1
0
mirror of https://github.com/gdamore/tcell.git synced 2025-04-24 13:48:51 +08:00

9 Commits

Author SHA1 Message Date
Tim Culverhouse
c5c66b8427 tty: modify WindowSize method to return windowsize object
Modify the WindowSize method of the Tty interface to return a WindowSize
object. This object includes the window size in pixels, for use in
direct drawing of sixels. Terminals that do not support this feature
will have pixel sizes of 0,0.
2023-08-15 06:57:42 -07:00
Garrett D'Amore
d25117a2e5 Go fmt for the project. 2022-08-31 11:37:42 -07:00
Garrett D'Amore
8d48900cd2
fixes #489 Fix for #480 causes disengage to stall for another event (#490) 2021-09-27 07:30:29 -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
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
dcf5866e16 Permit a different device node to be used as /dev/tty. 2021-06-01 18:59:24 -07:00
Garrett D'Amore
5c5a66e2b0 fix panic on resize (regression) 2021-05-16 11:38:02 -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