# Stty: stdin isn't a terminal

**URL:** <https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055>\
**Category:** Ruby\
**Created:** [December 24, 2007, 4:47am UTC](https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055 "2007-12-24T04:47:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [December 24, 2007, 4:47am UTC](https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055/1 "2007-12-24T04:47:26Z")

</div>

Hey

I’m in the middle of writing shell as a part of Rubyunix, I am using  
HighLine::SystemExtensions to get each character (so that I may check  
to see if it is a reserved keystroke).

Basically, here’s my error:  
[http://pastie.caboo.se/132010](http://pastie.caboo.se/132010)

I absolutely cannot figure this out. In all of the other times that  
I’ve used this piece of code and tested it out, it has never done  
this to me before.

To clarify what is happening, it is thorwing the ‘stty: stdin isn’t a  
terminal’ AFTER it processes the command and is redisplaying the prompt.

If there’s anything else you need me to disclose, please tell me.

Thanks,  
-------------------------------------------------------|  
~ Ari  
seydar: it’s like a crazy love triangle of Kernel commands and C code

---

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [December 24, 2007, 7:00am UTC](https://www.ruby-forum.com/t/stty-stdin-isnt-a-terminal/124055/2 "2007-12-24T07:00:37Z")

</div>

On Dec 23, 2007, at 9:46 PM, thefed wrote:

> I’m in the middle of writing shell as a part of Rubyunix, I am using  
> HighLine::SystemExtensions to get each character (so that I may  
> check to see if it is a reserved keystroke).
> 
> Basically, here’s my error:  
> [Parked at Loopia](http://pastie.caboo.se/132010)

I can’t seem to see this paste at the moment. 😕

> I absolutely cannot figure this out. In all of the other times that  
> I’ve used this piece of code and tested it out, it has never done  
> this to me before.
> 
> To clarify what is happening, it is thorwing the ‘stty: stdin isn’t  
> a terminal’ AFTER it processes the command and is redisplaying the  
> prompt.
> 
> If there’s anything else you need me to disclose, please tell me.

Do you have the termios gem installed?

That’s the preferred method for HighLine to handle these issues. Can  
you try installing it and see if it helps?

James Edward G. II
