Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmm, I just tried it with stty raw and you're right.

It has happened to me though. Maybe a curses crash can leave it a state other than raw? One of the other modes such as inlcr plus ..? Also I suspect smart terminals and shells prevent a interactive session from getting too crazy.



Yeah, come to think of it, it wouldn't really surprise me if some weird terminal state swaps ^J and ^M or something.

Edit: Oh, you mentioned that yourself already, inlcr.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: