X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp/libreadline bug? (cannot use backspace) Date: Sat, 6 Mar 2010 22:23:15 -0800 (PST) Organization: http://groups.google.com Lines: 19 Message-ID: <483594ac-251d-4b57-b753-34701cd941fc@19g2000yqu.googlegroups.com> References: <013d25d6-f34d-4686-9c68-0de775d5bf59 AT t20g2000yqe DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1267942995 3568 127.0.0.1 (7 Mar 2010 06:23:15 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 7 Mar 2010 06:23:15 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: 19g2000yqu.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Bytes: 2040 X-Original-Bytes: 1997 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Mar 6, 7:54=A0pm, RayeR wrote: > > I'd like to use readline features in my program but it seems to not > work as expected. > I use djgpp 2.04, readline 5.1 and pdcurses 3.4 for djgpp 2.04 > Fisrt I tried to compile a small example: > gcc -Wall -O2 -o RLTEST.EXE RLTEST.C -lreadline -lpdcurses > It compiled OK but when I run it I cannot use backspace to edit my > input instead cursor jumps forward. Also key up/down works other than > I expected, instead listing history and replace current line it > appends. This sounds like a PDcurses issue that I've also noticed with the DOS version (e.g. ZILE). Can your app use NCurses instead? Try Blair's DJGPP port: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/ncurses/