Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-25-2007, 06:43 PM
|
#1
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Rep:
|
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.
|
|
|
08-26-2007, 01:45 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
What terminal program are you using? The default terminal in Fedora is gnome-terminal. Have you tried running the application in an xterm?
|
|
|
08-27-2007, 04:23 AM
|
#3
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Original Poster
Rep:
|
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
|
|
|
08-27-2007, 12:08 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
08-27-2007, 05:07 PM
|
#5
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Original Poster
Rep:
|
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.
|
|
|
08-27-2007, 05:18 PM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
So it wasn't the ncurses change, it was a termcap change. Good to know; thanks for the follow-up.
|
|
|
All times are GMT -5. The time now is 12:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|