linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kaushal <kaushal@rocsys.com>
To: linux-c <linux-c-programming@vger.kernel.org>
Subject: readline tab binding
Date: Wed, 20 Apr 2005 12:47:39 +0530	[thread overview]
Message-ID: <1113981459.5041.39.camel@localhost.localdomain> (raw)

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.


                 reply	other threads:[~2005-04-20  7:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1113981459.5041.39.camel@localhost.localdomain \
    --to=kaushal@rocsys.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).