Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to execute an ncurses-based command? #104

Open
dannys42 opened this issue Nov 24, 2021 · 2 comments
Open

How to execute an ncurses-based command? #104

dannys42 opened this issue Nov 24, 2021 · 2 comments

Comments

@dannys42
Copy link

When executing an ncurses-based (such as vim), the output does not appear to update correctly.

For example:

try runAndPrint("/usr/bin/vim")

I do not see the vim UI at all. When I hit Ctrl-C, I see a flash in the terminal. So this implies that the text controls were sent but perhaps are being buffered. I looked through the code but I don't see an obvious way to control the stdout buffer size.

As a separate issue, it would be nice if there was a way to pass-thru ctrl-c and other job control keys to the executing process.

@kareman
Copy link
Owner

kareman commented Nov 24, 2021 via email

@honghaoz
Copy link

honghaoz commented May 1, 2022

I have limited knowledge of shell command. Is program such as less is this type of command that you can't interact via SwiftShell?

My problem is I'd like to run following command:

try? SwiftShell.runAndPrint("/usr/local/bin/git", "log")

just like you run git log in Terminal.app so that you can scroll and type q to quit.

Any hints on how to support this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants