service/debugger,terminal: API and user interface for follow exec mode (#3286)

Updates #2551
This commit is contained in:
Alessandro Arzilli
2023-04-24 23:37:31 +02:00
committed by GitHub
parent 47481fe0ab
commit a61ccea65a
12 changed files with 295 additions and 1 deletions

View File

@ -58,6 +58,7 @@ type Term struct {
stdout *transcriptWriter
InitFile string
displays []displayEntry
oldPid int
historyFile *os.File
@ -115,6 +116,9 @@ func New(client service.Client, conf *config.Config) *Term {
if client != nil {
lcfg := t.loadConfig()
client.SetReturnValuesLoadConfig(&lcfg)
if state, err := client.GetState(); err == nil {
t.oldPid = state.Pid
}
}
t.starlarkEnv = starbind.New(starlarkContext{t}, t.stdout)