issues Search Results · repo:mattn/go-tty language:Go
Filter by
17 results
(48 ms)17 results
inmattn/go-tty (press backspace or delete to remove)Repro steps
If I try to run go vet on this library, I get:
go vet ./...
go: downloading github.com/mattn/go-runewidth v0.0.16
# github.com/mattn/go-tty
./tty.go:35:17: method ReadRune() (rune, error) ...
nicks
- Opened on Sep 2, 2024
- #53
var err error
stty, err = gotty.OpenDevice(ptyPath)
if err != nil {
log.Printf( failed to open stty: %v , err)
return
}
defer func() {
if gerr := stty.Close(); gerr != nil {
log.Err(gerr).Msgf( failed ...
fess932
- 4
- Opened on Jul 22, 2024
- #50
Simple TTY utility
This does not help me understand what this does, instead something like
Simple TTY utilty that allows for:
- Getting the size of a terminal both in characters and pixels
- Reading ...
godalming123
- Opened on Aug 1, 2023
- #48
I m using the following example:
tty, err := tty.Open()
if err != nil {
log.Fatal(err)
}
defer tty.Close()
for {
r, err := tty.ReadRune()
if err != nil {
log.Fatal(err)
}
// handle key event
} ...
AnomalRoil
- 2
- Opened on Dec 8, 2021
- #44
Hi,
Thank you very much for your project. I make a simple program using go-tty as follows.
func main() {
tty, err := tty.Open()
if err != nil {
log.Fatal(err)
}
defer tty.Close()
s, err := tty.ReadString() ...
nwtgck
- 1
- Opened on Apr 12, 2020
- #37
tty.Open() causes the calling process to suspend with SIGTTOU on Linux if the caller is not in the foreground.
Specifically the ioctl termios write is what hangs.
Ideally this would instead return an ...
ThisGuyCodes
- 4
- Opened on May 23, 2019
- #26
When I run sh -i and am in raw mode in the tty, I get broken output: image If I create an additional tty, spawn sh in it
and redirect its output to my tty, it works.
For more check this
The solution ...
dzervas
- 2
- Opened on Apr 10, 2019
- #24
Update: this problem exists for the Cygwin terminal mintty
See the latest comment
I am trying to read the terminal response on escape code queries on Windows. The code always queries successfully on ...
srlehn
- 4
- Opened on Apr 2, 2019
- #22
This happens for Windows. #17, #19 are instead for Unix.
This crash can be tested with the code from #19.
The crash happens after resizing the image and releasing the mouse button.
Tested with conhost, ...
srlehn
- 1
- Opened on Mar 31, 2019
- #20
![Issue origami icon](/images/modules/search/issues.png)
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.![Issue origami icon](/images/modules/search/issues.png)
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.