Skip to content

Running programs in subshells #206

@M-Porter

Description

@M-Porter

I just recently switched my project jumper from using tcell to bubbletea but I have run into some issues with ioctl.

Previously i was able to run my script in a sub command like cd $(jumper to). Now when i try that same command with bubbletea i get the the following error:

inappropriate ioctl for device
cd: string not in pwd: ^[[?25l^[[?1049h^[[0;0H^[[?1002l^[[?1003l^[[1;m❯^[[0m

Some searching in tcell led me to this https://github.com/gdamore/tcell/blob/7946eb8e8d8303b1ee1da909dcdebf448f0b5cb7/nonblock_unix.go#L25-L40

Seems as though bubbletea isn't waiting for the output to drain properly (if im understanding the tcell code correctly.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions