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

I/O garbled in Xcode's "pseudo" PTY #85

Open
mralexgray opened this issue Feb 22, 2015 · 6 comments
Open

I/O garbled in Xcode's "pseudo" PTY #85

mralexgray opened this issue Feb 22, 2015 · 6 comments

Comments

@mralexgray
Copy link

you DID say to test it everywhere.... and although the Xcode console is far from compliant with ANYthing.. it would be nice if there was a sane way to interact with it.. which is what led me to your (neat) project.

everything is fine and dandy in iTerm...

screen shot 2015-02-22 at 8 29 46 am

but here's what happens in good'ole Xcode (6.1.1)...

linenoise

arguably, this IS better (though far from ideal)... than what you get with my normal IO routines in the same console environment...

stdio

The Xcode console is very weird.. It has no exposed "size" (COLUMNS, and the such), and also, mine MAY be off kilter a bit.. as I DO have the XCODE_COLORS extension installed (amongst many others). Maybe someone with a stock rig can try it, as well?

Let me know how I can help fix this... if you (and God, 🙏) are wiling...

@antirez
Copy link
Owner

antirez commented Feb 23, 2015

Hello! If you tested with the latest commit of Linenoise (very likely), it is going to be very hard to fix, because it uses really the bare minimum of pure VT100 capabilities! So likely there is really no decent VT100 support at all in the XCode console :-) Thanks for reporting and for the nice gifs.

@mralexgray
Copy link
Author

I'm going to look into it. I didn't mean to sound hopeless.. I mean it almost works. I will fiddle with it and see if I can't muster a more usable state with minimal change required.

@iliaskarim
Copy link

@mralexgray I would love to see this 👍

@xrdavies
Copy link

xrdavies commented May 30, 2018

The same issue met, not able to debug with xcode 9.2 console.
Really helpless on this when wanna try to replace readline lib.

@fosterbrereton
Copy link

Gah! This library is this close -> <- to what I want, but since I cannot use it in Xcode, I'm afraid I cannot use it. If this ever does get resolved (even if that means a reduced feature set when inside Xcode), it would be amazing.

@fosterbrereton
Copy link

A workaround I found was to change isUnsupportedTerm to return 1 instead of 0 in the event there is no TERM environment variable. This at least makes the Xcode terminal functional, though it will still be lacking many features.

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

5 participants