LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2004, 03:39 PM   #1
sasha_baranov
LQ Newbie
 
Registered: Aug 2004
Location: New York
Posts: 6

Rep: Reputation: 0
Question about Readline Library


Hi, All.
In my Linux program on a computer with Debian Linux I need to have a
simple command line input. I plan to use remote Windows computer as remote console and use it's Windows telnet for communication. I try to use Linux readline library. It works when I use standard input and output. When I create TCP socket, associate file "dirstream" with it and make redirections:
rl_instream = dirstream;
rl_outstream = dirstream;
the readline outputs my prompt ( ">") to remote telnet console, but I cannot input the command. And I see following warning: "rl_prep_terminal:
cannot get terminal settings."

So, the readline seems to work fine with standard input-output, but somehow goes wrong when I try to use non-standard stream ("dirstream", associated with a socket in my case)

Can anybody give an advise?
Thanks in advance, Alex.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Method readLine() in Java...help KissDaFeetOfSean Programming 1 09-09-2005 12:41 AM
Postgresql 7.4.2 with Readline on Debian 3.0 jockster666 Linux - Software 1 03-07-2005 04:17 PM
readline compile feetyouwell Programming 1 10-06-2004 06:01 PM
library linking question. shaggz Linux - General 1 04-25-2004 11:22 PM
readline problem when compiling dark_forests Linux - Software 0 10-12-2003 04:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration