# Windows stty IRB question

**URL:** <https://www.ruby-forum.com/t/windows-stty-irb-question/192997>\
**Category:** Ruby\
**Created:** [August 9, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997 "2010-08-09T20:32:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KellerS\_Robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Post date:** [August 9, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997/1 "2010-08-09T20:32:24Z")

</div>

I am on windows XP and when I run IRB ruby version 1.8.7-p249 I get a  
STTY error

G:\>irb  
stty: Unknown mode: g  
stty: Unknown mode: icrnl  
irb(main):001:0\>

Where can I fix the IRB sty call?

Thanks

* * *

Robert K.

x7-5628

* * *

If you can’t explain it simply, you don’t understand it well enough.

Albert Einstein

---

<div class="post-metadata">

**Author:** ![KellerS\_Robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Post date:** [August 10, 2010, 2:43am UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997/2 "2010-08-10T02:43:09Z")

</div>

> G:\>irb  
> stty: Unknown mode: g  
> stty: Unknown mode: icrnl  
> Where can I fix the IRB sty call?

Which stty.exe is it calling? It’s probably calling into a wrong one,  
like cygwin or something…

---

<div class="post-metadata">

**Author:** ![KellerS\_Robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Post date:** [August 10, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997/3 "2010-08-10T15:43:19Z")

</div>

Roger P. wrote:

> > G:\>irb  
> > stty: Unknown mode: g  
> > stty: Unknown mode: icrnl  
> > Where can I fix the IRB sty call?
> 
> Which stty.exe is it calling? It’s probably calling into a wrong one,  
> like cygwin or something…

It is calling the wks version…, is there a way to edit what irb is  
calling?

robert

---

<div class="post-metadata">

**Author:** ![KellerS\_Robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Post date:** [August 10, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997/4 "2010-08-10T16:58:27Z")

</div>

Robert K. wrote:

> Roger P. wrote:
> 
> > > G:\>irb  
> > > stty: Unknown mode: g  
> > > stty: Unknown mode: icrnl  
> > > Where can I fix the IRB sty call?
> > 
> > Which stty.exe is it calling? It’s probably calling into a wrong one,  
> > like cygwin or something…
> 
> It is calling the wks version…, is there a way to edit what irb is  
> calling?

I think it calls out to “stty.exe” and “if it’s there, uses it, if not  
ignores it” (I’m just guessing here, but I think so).

Anyway work arounds might be to remove the wks version from your path,  
possibly to set the TERM variable to something different…

-r

---

<div class="post-metadata">

**Author:** ![KellerS\_Robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KellerS\_Robert](https://www.ruby-forum.com/u/KellerS_Robert)\
**Post date:** [August 10, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/windows-stty-irb-question/192997/5 "2010-08-10T17:10:34Z")

</div>

That was the answer. Windows in this case works if you set the TERM to  
nothing:

C:\set TERM=

Thanks

Robert K.
