ianxm / ihx

The interactive haXe shell
http://github.com/ianxm/ihx
Other
79 stars 10 forks source link

Input doesn't work when running under Cygwin's bash via a PuTTY session #13

Open gene-pavlovsky opened 8 years ago

gene-pavlovsky commented 8 years ago

I haven't tried this on an actual Linux system yet, but when running under Cygwin's bash via a PuTTY session), ihx doesn't seem to connect to stdin. After I entered var a=1; - nothing happened, so I pressed Ctrl+C:

# haxelib.exe run ihx
haxe interactive shell v0.3.4
type "help" for help
>> var a=1;

14:07:42 ~
# var a=1;
bash: var: command not found
ianxm commented 8 years ago

I don't follow. you're using putty to connect to a windows box running cygwin with sshd?

gene-pavlovsky commented 8 years ago

PuTTY actually includes contrib/cygtermd, a companion for use with Cygwin (on local PC). http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/cygwin-terminal-window.html The reason I use PuTTY is it has a nice terminal emulator that works well with various full-screen UNIX console programs (e.g. text editors) and there are nice multi-tabbed wrappers around it. And apparently using Cygtermd is not important, I also have sshd running (on my local PC), connecting with putty to localhost via ssh and there is same behavior, ihx doesn't read any input.

NQNStudios commented 4 years ago

I can reproduce the log above using an Msys2 terminal on my Windows box. Something like it also happens when I try to run ihx from a comint-mode terminal in Emacs--minus the part where the command gets sent to Bash after I type ctrl+c.

If I find a fix for this I'll let you know.

ianxm commented 4 years ago

you're right that ihx doesn't work from comint-mode. I get the same behavior in shell and eshell also, but term is ok.

NQNStudios commented 4 years ago

Just out of curiosity, do you ever write Haxe code in Emacs? I tried a bunch of the different outdated haxe modes and none of them could get formatting right.

On Fri, Jul 10, 2020, 5:59 AM Ian notifications@github.com wrote:

you're right that ihx doesn't work from comint-mode. I get the same behavior in shell and eshell also, but term is ok.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ianxm/ihx/issues/13#issuecomment-656638264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATXBKO425CPBVNHE62IEFTR237CPANCNFSM4CAOLXMQ .

ianxm commented 4 years ago

I write everything in emacs. I use the haxe-mode melpa package. it isn't perfect but is good enough.

NQNStudios commented 4 years ago

Do you disable electric indentation mode? I found that it was always breaking my indentation as I typed. But I don't know a better alternative for making indentation automatic.

On Sat, Jul 11, 2020, 5:15 AM Ian notifications@github.com wrote:

I write everything in emacs. I use the haxe-mode melpa package. it isn't perfect but is good enough.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ianxm/ihx/issues/13#issuecomment-657046708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATXBKI2C7MKKR7PJEUVN2LR3BCWXANCNFSM4CAOLXMQ .