dbTalk Databases Forums  

dbaccess - return key does not work?

comp.databases.informix comp.databases.informix


Discuss dbaccess - return key does not work? in the comp.databases.informix forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old   
Andrew2006
 
Posts: n/a

Default Re: dbaccess - return key does not work? - 12-28-2007 , 06:37 AM






On Dec 28, 2:25 am, "Sebastian, Norma J."
<NormaJean.Sebast... (AT) tellabs (DOT) com> wrote:
Quote:
Jack, Andrew,
Could there be an stty setting in the way? I know on solaris sometimes
my .profile (ksh) or .cshrc (csh) can have unexpected stty settings
(unexpected for me, but perhaps good for some application or someone).
An unexpected STTY setting can hose up my backspace key or my kill key
so I have to do a couple stty settings to get things "out of the way"
and then my normal key expectations start working.
Just a thought,
Norma Jean
.
.
.

================================================== ==========
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
================================================== ==========
Norma Jean,

My stty settings are:
$ stty -a
speed 38400 baud; rows 49; columns 139; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff -iuclc ixany imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -
echoprt echoctl echoke

However, as the Return key does work with the other location of
dbaccess, it seems that the STTY settings must be correct?

Thanks for the suggestion

Andrew


Reply With Quote
  #22  
Old   
Andrew2006
 
Posts: n/a

Default Re: dbaccess - return key does not work? - 12-28-2007 , 06:39 AM






On Dec 28, 7:04 am, "Jonathan Leffler" <jleffler.i... (AT) gmail (DOT) com>
wrote:
Quote:
On Dec 27, 2007 3:24 AM, Andrew2006 <mymate... (AT) googlemail (DOT) com> wrote:

Can anyone recommend a tutorial for using dbaccess in menu mode?

When prompted to hit return, e.g. "Select a server with the Arrow
Keys, or enter a name, then press Return." I can move the cursor to
highlight the database but hitting return causes the cursor to move
forward to the next db. Manually entering the name and hitting return
will work though.

I am running it from a console in Ubuntu Linux.

I agree with the general consensus that the problem is most likely
related to terminal handling.

One option no-one else mentioned is setting INFORMIXTERM=terminfo and
then using
the terminfo entries instead of the termcap entries. You might then
need to set TERMINFO=/where/you/terminfo/files/are (but probably would
not).

This isn't necessarily a slam dunk - the Informix termcap file is a
weird and wonderful thing (but not necessarily updated very often -
I'd be mildly surprised if it had been updated in the current
millennium, but I might be doing people an injustice).

--
Jonathan Leffler #include <disclaimer.h
Email: jleff... (AT) earthlink (DOT) net, jleff... (AT) us (DOT) ibm.com
Guardian of DBD::Informix v2007.0914 --http://dbi.perl.org/
NB: Please do not use this email for correspondence.
I don't necessarily read it every week, even.

Jonathon,

Tried setting INFORMIXTERM=terminfo, with and without TERMINFO=/usr/
share/terminfo/
Unfortunately no joy there.

Thanks

Andrew


Reply With Quote
  #23  
Old   
Andrew2006
 
Posts: n/a

Default Re: dbaccess - return key does not work? - 12-28-2007 , 07:13 AM



A colleague found the problem in my .bashrc:

alias dbaccess='rlwrap dbaccess'

I use rlwrap when in non-menu mode as you can view your history of all
previous sql queries using the up and down arrows.

When I used the alternative version I was specifying the full path and
so not using my alias, hence it worked correctly.

Thankyou everyone for all the help.

Andrew

Reply With Quote
  #24  
Old   
Jack Parker
 
Posts: n/a

Default RE: dbaccess - return key does not work? - 12-28-2007 , 08:13 AM



cool. who would of thunk it!

j.

-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org
[mailto:informix-list-bounces (AT) iiug (DOT) org]On Behalf Of Andrew2006
Sent: Friday, December 28, 2007 7:14 AM
To: informix-list (AT) iiug (DOT) org
Subject: Re: dbaccess - return key does not work?


A colleague found the problem in my .bashrc:

alias dbaccess='rlwrap dbaccess'

I use rlwrap when in non-menu mode as you can view your history of all
previous sql queries using the up and down arrows.

When I used the alternative version I was specifying the full path and
so not using my alias, hence it worked correctly.

Thankyou everyone for all the help.

Andrew
_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.