# \[HighLine\] stty: stdin isn't a terminal

**URL:** <https://rubytalk.org/t/highline-stty-stdin-isnt-a-terminal/43247>\
**Category:** ruby-talk\
**Created:** [24 December 2007 03:46 UTC](https://rubytalk.org/t/highline-stty-stdin-isnt-a-terminal/43247 "2007-12-24T03:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedzor](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@fedzor](https://rubytalk.org/u/fedzor)\
**Post date:** [24 December 2007 03:46 UTC](https://rubytalk.org/t/highline-stty-stdin-isnt-a-terminal/43247/1 "2007-12-24T03:46:19Z")

</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:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [24 December 2007 05:59 UTC](https://rubytalk.org/t/highline-stty-stdin-isnt-a-terminal/43247/2 "2007-12-24T05:59:47Z")

</div>

> 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 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 Gray II

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