-
Notifications
You must be signed in to change notification settings - Fork 139
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
IDE terminal doesn't handle interactive commands #16
Comments
This happens "by design". The "terminal" in the IDE is not actually a terminal and the commands are running non-interactively, which is why commands that are interactive or require a terminal misbehave. For instance, In your case you can probably fix that with
or this may also work
This probably requires a slightly more detailed entry in the wiki |
We don't need any particularly fancy terminal emulation (e.g. to run the likes of emacs), but basic capability to use interactive commands would be useful for a variety of common scenarios. For the moment, more details on the wiki would be a good idea. Long term, a different solution that enables interactive commands would be nice, but it isn't high priority since someone can always open an actual terminal if they need to. |
I wouldn't say this happens by design, really it happens because pty.js which is a node.js pseudo-terminal module that would allow the terminal emulator to work properly does not compile on the BeagleBone. The current system runs bash as a child-process without a pseudo-terminal which is a bit of a hack. I haven't really had a chance to look into why it doesn't build, so it's possible this can be fixed. |
@LBDonovan is this the error you are getting?
|
That looks a little different actually, it seems there have been quite a few commits to the pty.js repo since I last tried to do this so I might give it another go... |
Could it not als obe to the fact that the board has an old version of |
also, funny enough, if you run this on the console:
Once it's done,
|
Codiad ("a minimal-footprint IDE") has an extension for terminal http://market.codiad.com/. I pin this here, though most likely we want to try to compile pty.js on 4.4.x FTW |
yes this works on the host:
|
Related issue: #503 |
It seems that |
so I tried xterm.js . It stil uses pty, which now builds. See here for a PoC https://github.com/giuliomoro/Bela/tree/xterm , but it requires a fair amount of extra work to:
Here's the stub. https://github.com/giuliomoro/Bela/tree/xterm |
Commands that need a yes/no response do not respond correctly on the IDE terminal. For example:
i2cdetect -r 1
This will abort for not receiving an expect Y/n response.
The text was updated successfully, but these errors were encountered: