Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1824

Summary: ebuild for LFM (Last File Manager)
Product: Gentoo Linux Reporter: Ollie Rutherfurd <oliver>
Component: New packagesAssignee: Brad Cowan (RETIRED) <bcowan>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild for lfm-0.8
Updated ebuild

Description Ollie Rutherfurd 2002-04-15 22:47:54 UTC
Hi,  
  
I've attached an ebuild for LFM (Last File Manager), a  
midnight commander clone (written in Python).  
 
It is a new ebuild. 
 
-Ollie Rutherfurd
Comment 1 Ollie Rutherfurd 2002-04-15 22:48:28 UTC
Created attachment 573 [details]
ebuild for lfm-0.8
Comment 2 Jon Nelson (RETIRED) 2002-04-25 22:26:30 UTC
I tried the supplied ebuild, and it works just fine.
However, lfm itself doesn't run on my machine.
The code uses curses.curs_set(0), which raises an exception in my (normal)
xterms.  If the author of lfm releases a patch which fixes this problem in one
way or another, then we'll look at it then.  Until then, since it doesn't work,
I'm reluctant to put it in the archive.

I'll hang on to the ebuild and stuff for a while yet (couple of weeks, at least).



From the python documentation:

curs_set(visibility)
Sets the cursor state. visibility can be set to 0, 1, or 2, for invisible,
normal, or very visible. If the terminal supports the visibility requested, the
previous cursor state is returned; otherwise, an exception is raised. On many
terminals, the ``visible'' mode is an underline cursor and the ``very visible''
mode is a block cursor. 
Comment 3 Justin Lambert 2002-12-14 17:23:52 UTC
Created attachment 6508 [details]
Updated ebuild

Here is an updated ebuild for lfm-0.9.	It appears to install just fine but
does not run correctly and I am not a python dev to try to figure out if there
is a simple reason.  Here is the trace:

Traceback (most recent call last):
  File "/usr/bin/lfm", line 23, in ?
    LfmApp(sys.argv)
  File "/usr/lib/python2.2/site-packages/lfm/lfm.py", line 2827, in LfmApp
    path = curses.wrapper(main, paths, npanels)
  File "/usr/lib/python2.2/curses/wrapper.py", line 44, in wrapper
    res = apply(func, (stdscr,) + rest)
  File "/usr/lib/python2.2/site-packages/lfm/lfm.py", line 2758, in main
    app = Lfm(path, npanels)
  File "/usr/lib/python2.2/site-packages/lfm/lfm.py", line 65, in __init__
    self.init_curses()
  File "/usr/lib/python2.2/site-packages/lfm/lfm.py", line 92, in init_curses
    curses.curs_set(0)
_curses.error: curs_set() returned ERR
Comment 4 Andre Heidemann 2003-01-18 16:27:52 UTC
A simple way to outrun this error is to set the TERM variable to linux. It works
fine for me.
Comment 5 Brad Cowan (RETIRED) gentoo-dev 2003-01-25 18:51:19 UTC
I'm not going to take the liberty to put a buggy filemanager in portage...hold
on to the ebuild and if it becomes better developed resubmit