linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* readline tab binding
@ 2005-04-20  7:17 kaushal
  0 siblings, 0 replies; only message in thread
From: kaushal @ 2005-04-20  7:17 UTC (permalink / raw)
  To: linux-c

Hello all,
	Iam new to the readline function.I used it to bind the tab key to my
function.The function works fine .What I intend is:

When tab key is pressed ,My function should print "hello" in the next
line and in the subsequent line the prompt should showoff along with the
partial command and should read from thereon.

Iam getting the intended action and the display in xterm.But when I
run this in the minicom,I find that after printing "hello",in the next
line the prompt and the incomplete command are not being printed but
actually the prompt along with the incomplete command is listening for
sure.Something like the below:


PROMPT:ls<TAB>
HELLO
<CURSOR BLINKS HERE BUT NO (PROMPT+COMMAND) DISPLAYED BUT READY TO TAKE
INPUT.>

intended:

PROMPT:ls<TAB>
HELLO
PROMPT:ls<CURSOR BLINKS HERE READY TO TAKE INPUT>


The problem occurs when I run this via minicom and its all fine in
xterm.

The machine connected via minicom runs linux and is of same
architecture.Iam using readline version 4.0

I tried out giving flushes at various places but it is not turning up.My
box runs fedora core-1.

Any response would be greatly useful.
Thanking in advance.

-kaushal.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-20  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20  7:17 readline tab binding kaushal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).