Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/streamer/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,16 @@ func (m *Streamer) Init(ctx context.Context) error {
return err
}

// trigger 0x03 (ctrl-c) to start login prompt at console
r, err := m.SendCharacter(ctx, 0x03) // send ctrl-c to console
if err != nil {
return err
}
// after getting response we need to exec command
if string(r) == `[quote \003` {
m.Write([]byte("\r"))
}

return nil
}

Expand Down
Loading