HI Andrien,<div><br>Thanks !!</div><div><br></div><div>I tried this on STDIN but doesn' work.</div><div>I should apply this on STDIN_FILE or STDOUT_FILE or STDERR_FILE ?</div><div>Currently what I have done is -</div><div>
<br></div><div><div>struct termios stdin_term_settings;</div><div>        tcgetattr(STDIN_FILENO, &stdin_term_settings);</div><div>        stdin_term_settings.c_lflag &= ~ECHO & ~ICANON;</div><div>        tcsetattr(STDIN_FILENO, TCSANOW, &stdin_term_settings);</div>
<div><br></div><div>But this is not working... At MORE prompt it still doesn't recognize SPACE. What I am doing wrong ?</div><div><br></div><div>Thanks & Regards,</div><div>     - Nayna</div><br><div class="gmail_quote">
On Mon, Apr 9, 2012 at 7:38 PM, Adrien Kunysz <span dir="ltr"><<a href="mailto:adk@acunu.com">adk@acunu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Apr 8, 2012 at 4:47 PM, Nayna Jain <<a href="mailto:jainnayna@gmail.com">jainnayna@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to provide a console from within Eclipse IDE for crash.<br>
> This way they can execute commands on crash prompt from within Eclipse.<br>
><br>
> To make this work, first I tried to write a simple C program which invokes<br>
> crash from within the program on a tty.<br>
> It uses forkpty for this purpose and then execv the crash.<br>
><br>
> It works fine, crash prompt is reached.<br>
> few commands having small outputs works fine.<br>
><br>
> But commands like ps which works along with "more" to do paging of output<br>
> has issue.<br>
> When it stops at the line of MORE.. expecting input from user like SPACE, q,<br>
> b etc., it doesn't recognize it directly.<br>
> I have to type SPACE and then ENTER. q and then ENTER.<br>
> What termios setting is required to make it work ? Can someone please help<br>
> with this issue ? How do I make it recognize SPACE, q , at MORE prompt.?<br>
<br>
</div>I think you are looking for ~ICANNON.<br>
<div class="im"><br>
> --<br>
> Courage is not the absence of fear but rather the judgment that something is<br>
> more important than fear. The brave may not live forever but the cautious do<br>
> not live at all. -- The Princess Diaries<br>
><br>
><br>
</div>> --<br>
> Crash-utility mailing list<br>
> <a href="mailto:Crash-utility@redhat.com">Crash-utility@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/crash-utility" target="_blank">https://www.redhat.com/mailman/listinfo/crash-utility</a><br>
><br>
<br>
--<br>
Crash-utility mailing list<br>
<a href="mailto:Crash-utility@redhat.com">Crash-utility@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/crash-utility" target="_blank">https://www.redhat.com/mailman/listinfo/crash-utility</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Courage is not the absence of fear but rather the judgment that 
something is more important than fear. The brave may not live forever 
but the cautious do not live at all. -- The Princess Diaries<br><br>
</div>