charmbracelet / charmbracelet/bubbletea
Access contents of terminal session after tea.ExecProcess
- Dominant language
- Go
- Stars
- 44.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
From the example here https://github.com/charmbracelet/bubbletea/tree/master/examples/exec I see that you can retrieve and handle an error, but not much else from the executing process.
I want to exec into a shell session, but then be able to access the content of the session back in my bubble tea app. So if the shell session looks like:
```
❯ uname
Darwin
❯ whoami
robinovitch61
❯ exit
```
I'd like my bubble tea app to have access to the string:
```
`❯ uname
Darwin
❯ whoami
robinovitch61
❯ exit`
```
Any ideas on how this might be possible?
Thanks!
Leo
Contributor guide
Research direction
Start with the examples/exec example linked in the issue and the tea.ExecProcess entry point. Determine whether the process session output can be exposed back to the Bubble Tea application, and define completion around making the displayed shell transcript available as a string after the session exits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100