Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

ANSI terminal fails when run through pub #1

Open
joseluis opened this issue Mar 8, 2016 · 0 comments
Open

ANSI terminal fails when run through pub #1

joseluis opened this issue Mar 8, 2016 · 0 comments

Comments

@joseluis
Copy link
Member

joseluis commented Mar 8, 2016

When the CLI interface is run with pub get run, or after activating it with pub global activate and the ANSI terminal is used it gives the following error:

StdoutException: Could not get terminal size, OS Error: Inappropriate ioctl for device, errno = 25

It only works when using directly the dart command.

This issue depends on dart-lang/pub/issues/1204

joseluis added a commit that referenced this issue Mar 10, 2016
- Refactor Terminal Class.
    - Add terminal support for Control+Alt+Key & Shift+Alt+Key sequences.
    - Modularize the Byte reading loop. Make structure simpler and clearer.
    - Move key-code structures to keyCodes Class.
    - Show relevant info when catching error related to issue #1.
    - Add initial mouse support.
    - Temporarily made public some properties and methods for easy interop.
- Rename ANSI class to XTerm.
- Rename ansi.dart file to xterm_control.dart
- Add keyCodes Class in xterm_keycodes.dart.
- Rename CLI --terminal-type ansi argument to xterm.
- New word: KEY
- Modify InputQueue & VirtualMachine classes.
    - Implemented a single character input buffer for the word KEY
    - Rename VirtualMachine.source property to input.
    - Rename InputQueue properties: id to sourceId & length to sourceLength.
    - Rename getLineFromSimpleTerminal() to getLineFromXTerm().
    - Enable XTerm by default only in Linux and MacOs
- ForthError.unmanaged() text update. Update error tests.
- Minor fixes.
- More comments.
- Update readme.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant