LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-25-2007, 06:43 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
ncurses


I have upgraded to Fedora 7. Looks good!

Unfortunately a menu based application that normally uses termcap no longer handles curser operations properly with an xterm misbehaving, eventually locking up.

Installations are nearly all rpms and ncurses is installed as an rpm. I have version ncurses 5.6 and it is installed in /usr/share/terminfo with a symbolic link in /etc/terminfo and /usr/lib/terminfo . I have had this trouble in the past and solved it by backing up to a previous version of ncurses but this time there so many installed FC7 applications that are dependent the new version of ncurses it is not viable to solve the problem this way any more.

I can change the menu application to use terminfo instead of termcap but instead of locking up and misbehaving it outputs strange characters on the screen like so

23;1HEnter order number, (N)ext else (Q)uitC________23;40H?12l

Anyone got advice as to my best solution. The best solution I have so far is change to another Linux flavour.
 
Old 08-26-2007, 01:45 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
What terminal program are you using? The default terminal in Fedora is gnome-terminal. Have you tried running the application in an xterm?
 
Old 08-27-2007, 04:23 AM   #3
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
ncurses

Good thinking but - no banana.
I use KDE rather than gnome and the terminal window is an xterm. But just to make sure, I ran an xterm and tried again and observed the same results.

Googling about I found some references that ncurses was no correctly implemented by Redhat but provided no helpful workarounds....you never know if these "experts" are right anyway. I may need to make up another box and try Ubuntu
 
Old 08-27-2007, 12:08 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Fedora tries to use the upstream products as much as possible (their patches are usually bug fixes pulled back to stabilize the product), so any distribution that uses the 5.6.x revision of ncurses will probably cause you a problem. In other words it may not be a distribution issue (there are no bugs against ncurses in Fedora/Redhat's bugzilla), but rather a change in the 5.6 revision that is causing your problem. The application may have been taking advantage of one or more bugs which have been resolved.

If that's the case, your choice is to stay on an older distribution or to update the code for compatibility with the new version.
 
Old 08-27-2007, 05:07 PM   #5
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
ncurses work around

I found a workaround/solution to get the screen based application working under the new ncurses.

Looking through termcap I tried setting the terminal window to once of the other possible terminals.

In the end I set
TERM=xterm-r6; export TERM
and it all started to work. I haven't tested it thoroughly yet and there may be glitches but so far it looks okay.
 
Old 08-27-2007, 05:18 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
So it wasn't the ncurses change, it was a termcap change. Good to know; thanks for the follow-up.
 
  


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
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 10:15 AM
qt vs ncurses nass Programming 1 06-08-2006 04:01 PM
Ncurses Natasl Programming 2 05-29-2006 06:53 AM
Ncurses Cruelpeace Programming 1 01-30-2003 08:21 PM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:27 PM.

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