mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Use a struct to store connection related data
This commit is contained in:
parent
d656017f27
commit
fa0773d9d2
2 changed files with 33 additions and 3 deletions
|
|
@ -148,6 +148,13 @@ func (self *Term) Close() error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (self *Term) WasEchoOnOriginally() bool {
|
||||
if len(self.states) > 0 {
|
||||
return self.states[0].Lflag&unix.ECHO != 0
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (self *Term) Tcgetattr(ans *unix.Termios) error {
|
||||
return eintr_retry_noret(func() error { return Tcgetattr(self.Fd(), ans) })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue