Stty: stdin isn't a terminal

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

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

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:
http://pastie.caboo.se/132010

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs