Pseudo terminal #3339
-
I'm trying to figure out what method is triggered when, in terminal mode, the terminal application writes to stdout. Can anyone assist? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I tried looking at the code but I do not think there is a method called when something is written in stdout in terminal mode. Panes are drawn when The terminal state drawn in |
Beta Was this translation helpful? Give feedback.
I believe I have found what I am looking for. In the "terminal" package, in file vt_posix.go, there is a function
(t *VT) Parse()
. It's described as:In it there is a
for
loop, where the first statement isc, sz, err := t.br.ReadRune()
. It looks like it blocks on ReadRune() until there is some data being written to the pty by the terminal application that was invoked.Thanks for looking at it!