maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [announce] VFU ... (https://talk.maemo.org/showthread.php?t=79563)

colin.stephane 2011-10-31 18:05

[announce] VFU ...
 
Hi all,

Here is my first attempt to package the latest VFU utilities :

VFU :

Overview :

VFU is console (text mode) file manager for UNIX/Linux.

Download packages from extra-devel :

Activate all repositories following this tutorial : http://thenokiablog.com/2009/10/27/m...-applications/

Then, as usual, as root, install with :

Code:

-bash-2.05b# apt-get install vfu && vfu --help
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following NEW packages will be installed:
  vfu
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 174kB of archives.
After this operation, 500kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free vfu 4.10-1maemo1 [174kB]
Fetched 174kB in 2s (63,5kB/s)
Selecting previously deselected package vfu.
(Reading database ... 39601 files and directories currently installed.)
Unpacking vfu (from .../vfu_4.10-1maemo1_armel.deb) ...
Setting up vfu (4.10-1maemo1) ...
VF/U v4.10 (Oct 31 2011) by (c) Vladi Belperchinov-Shabanski `Cade' 1996-2009Command line switches:
  none    -- run in interactive mode (DEFAULT)
  -h      -- this help screen
  -i      -- go temporarily into interactive mode
  -d path -- change current path to `path'
  -r      -- rebuild DirTree (under DOS -- tip: see -d)
  -t      -- view DirTree
  -v      -- version information
tips:
  1. command line switches are executed in order!
  2. example: vfu -d c:/dos/ -r -i
  3. example: vfu -d c:/ -r -d d:/ -r -d e:/ -r
compile information:
  target description: UNIX/LINUX
  compile date: Oct 31 2011
-bash-2.05b#

After successful installation, just use it !!!


Hope you like it :) ...

A++

sulu 2011-11-02 06:11

Re: [announce] VFU ...
 
Edit2:
Here is a nice vfu shortcut overview:
https://help.ubuntu.com/community/Vfu
/Edit2

Did you notice that <Enter> doesn't work in vfu? It's not a tragedy if you have lynx-like motion activated but it would be better if it worked.

I had a look at the vfu sources and it sems to me that vfu checks the ASCII code a key generates and if it's 10(d) or 13(d) the Enter routines are executed. For some reason Maemo (hildon?) does not seem to allow/create that ASCII code.
I tried your vfu package, mine and the standard Debian package via debbie. With none of them <Enter> works. But if I run vfu within a fully loaded Easy Debian on the N900 Enter works and according to xev it creates the ASCII code 0d(b) which is 13(d). I ran xev via debbie to see what happens in Maemo but here I get no reasonable output in xev on key press events at all.

Do you have any idea what's going on there?

Edit:I'm aware that the key on the N900 keyboard is <Enter> and not <Return> and that both create different keycodes. But they create the same ASCII codes according to xev on my laptops And the N900 <Enter> works fine fot vfu in Easy Debian so I'm pretty sure this is not the problem.

colin.stephane 2011-11-02 18:12

Re: [announce] VFU ...
 
Quote:

Originally Posted by sulu (Post 1117184)
Did you notice that <Enter> doesn't work in vfu? It's not a tragedy if you have lynx-like motion activated but it would be better if it worked.

I had a look at the vfu sources and it sems to me that vfu checks the ASCII code a key generates and if it's 10(d) or 13(d) the Enter routines are executed. For some reason Maemo (hildon?) does not seem to allow/create that ASCII code.
I tried your vfu package, mine and the standard Debian package via debbie. With none of them <Enter> works. But if I run vfu within a fully loaded Easy Debian on the N900 Enter works and according to xev it creates the ASCII code 0d(b) which is 13(d). I ran xev via debbie to see what happens in Maemo but here I get no reasonable output in xev on key press events at all.

Do you have any idea what's going on there?

Edit:I'm aware that the key on the N900 keyboard is <Enter> and not <Return> and that both create different keycodes. But they create the same ASCII codes according to xev on my laptops And the N900 <Enter> works fine fot vfu in Easy Debian so I'm pretty sure this is not the problem.

What do you mean by :

Quote:

Did you notice that <Enter> doesn't work in vfu?
???

On my side I can use <ENTER> key, for example, using <ENTER> from physical keyboard on the highlighted directory, enter properly in it.

I am not sure I understand your problem ...

A++

sulu 2011-11-02 18:57

Re: [announce] VFU ...
 
Quote:

Originally Posted by colin.stephane (Post 1117447)
On my side I can use <ENTER> key, for example, using <ENTER> from physical keyboard on the highlighted directory, enter properly in it.

I can't. I have to enter directories with <right arrow>. I can't exit the options menu with <Enter> (on the physical N900 keyboard) and I can't view a file by pressing <Enter>.
In mc <Enter> works fine.

Do you happed to have busybox-power [1] installed? I don't. Edit3: I installed busybox-power but that doesn't change anything.
This is my options menu, just in case that makes a difference:
Code:

Options/Toggles (scroll down, SPACE selects) 
--screen--------------------------------------
 1 Show Mode  field                      YES
 2 Show Owner field                      YES
 3 Show Group field                        - 
 4 Show Time  field                      YES
 5 Show Size  field                      YES
 6 Show Type  field                        - 
 7      Time Type                      MODIFY
 8 Long name view                          - 
  TagMark type                            =>
  Use colors                              - 
  Use /etc/DIR_COLORS                    - 
  Lowercase extensions for configs      YES
 . Show hidden files                      YES
--navigation----------------------------------
 i Use internal viewer                    YES
 I Use internal editor                    - 
  Use menu borders                        - 
--trees/dirs-- -------------------------------
  Compact DirTree                        - 
  CDTree (cdpath)                        - 
--troubleshooting-----------------------------
  Clear screen on shell                  YES
--compatibility-------------------------------
  Lynx style navigation                  YES
  Mask auto expand                      YES
  Use CWD as target for COPY/MOVE        - 
--other---------------------------------------
 b Allow beep!                            - 
 s Free space check on copy              YES
  Auto mount on change dir              YES
  Preserve selection (after rescan)      YES
  Preserve ownership/mode on copy?      YES
  Show user's free space                YES
  Calc/Show bytes on copy                YES
  Calc/Show bytes freed on erase        YES

My vfu.conf is unchanged except for replacing joe with nano as the default editor.

Edit:
When I log into my N900 via ssh both <Enter> and <Return> on my laptop's keyboard work as expected in vfu. It's really only the N900 <Enter> that doesn't work. And even that works fine in vfu started in Easy Debian.

Edit2:
It seems like the problem lies not in vfu itself or its dependencies. I logged into another computer via ssh from my N900 which has vfu installed and there the N900 <Enter> doesn't work either. So it must have something to do with my Maemo/hildon/busybox/locale/whatever... :confused:

[1] http://maemo.org/downloads/product/M...busybox-power/

colin.stephane 2011-11-02 19:53

Re: [announce] VFU ...
 
Quote:

Originally Posted by sulu (Post 1117463)
I can't. I have to enter directories with <right arrow>. I can't exit the options menu with <Enter> (on the physical N900 keyboard) and I can't view a file by pressing <Enter>.
In mc <Enter> works fine.

Do you happed to have busybox-power [1] installed? I don't. Edit3: I installed busybox-power but that doesn't change anything.
This is my options menu, just in case that makes a difference:
Code:

Options/Toggles (scroll down, SPACE selects) 
--screen--------------------------------------
 1 Show Mode  field                      YES
 2 Show Owner field                      YES
 3 Show Group field                        - 
 4 Show Time  field                      YES
 5 Show Size  field                      YES
 6 Show Type  field                        - 
 7      Time Type                      MODIFY
 8 Long name view                          - 
  TagMark type                            =>
  Use colors                              - 
  Use /etc/DIR_COLORS                    - 
  Lowercase extensions for configs      YES
 . Show hidden files                      YES
--navigation----------------------------------
 i Use internal viewer                    YES
 I Use internal editor                    - 
  Use menu borders                        - 
--trees/dirs-- -------------------------------
  Compact DirTree                        - 
  CDTree (cdpath)                        - 
--troubleshooting-----------------------------
  Clear screen on shell                  YES
--compatibility-------------------------------
  Lynx style navigation                  YES
  Mask auto expand                      YES
  Use CWD as target for COPY/MOVE        - 
--other---------------------------------------
 b Allow beep!                            - 
 s Free space check on copy              YES
  Auto mount on change dir              YES
  Preserve selection (after rescan)      YES
  Preserve ownership/mode on copy?      YES
  Show user's free space                YES
  Calc/Show bytes on copy                YES
  Calc/Show bytes freed on erase        YES

My vfu.conf is unchanged except for replacing joe with nano as the default editor.

Edit:
When I log into my N900 via ssh both <Enter> and <Return> on my laptop's keyboard work as expected in vfu. It's really only the N900 <Enter> that doesn't work. And even that works fine in vfu started in Easy Debian.

Edit2:
It seems like the problem lies not in vfu itself or its dependencies. I logged into another computer via ssh from my N900 which has vfu installed and there the N900 <Enter> doesn't work either. So it must have something to do with my Maemo/hildon/busybox/locale/whatever... :confused:

[1] http://maemo.org/downloads/product/M...busybox-power/

What does :

Code:

-bash-2.05b# echo $LANG
report on your side ?

A++

sulu 2011-11-02 20:01

Re: [announce] VFU ...
 
Code:

~ $ echo $LANG
de_DE

Do I see your using bash instead of busybox?

colin.stephane 2011-11-02 20:07

Re: [announce] VFU ...
 
Quote:

Originally Posted by sulu (Post 1117489)
Code:

~ $ echo $LANG
de_DE

Do I see your using bash instead of busybox?

OOPS !!!

Yep I have omitted the evidence, sorry ...

Code:

-bash-2.05b# grep bash /etc/passwd | awk -F: '{print $1":blabla:blabla:blabla:"$NF}' && echo $LANG
root:blabla:blabla:blabla:/bin/bash
user:blabla:blabla:blabla:/bin/bash
fr_FR.UTF8
-bash-2.05b#

A++

sulu 2011-11-02 20:31

Re: [announce] VFU ...
 
I've set $LANG to de_DE.UTF8 and even to fr_FR.UTF8 (just in case...) but <Enter> in vfu still doesn't work.

Edit:
It's not the shell either. I started vfu from bash but nothing changed. I'm running out of ideas.

colin.stephane 2011-11-03 10:39

Re: [announce] VFU ...
 
1 Attachment(s)
Quote:

Originally Posted by sulu (Post 1117499)
I've set $LANG to de_DE.UTF8 and even to fr_FR.UTF8 (just in case...) but <Enter> in vfu still doesn't work.

Edit:
It's not the shell either. I started vfu from bash but nothing changed. I'm running out of ideas.

I don't really know what can I do more to help you.

Anyhow, at least I add my environment variables in attachment, maybe you can find something interesting ...

A++

sulu 2011-11-03 11:19

Re: [announce] VFU ...
 
Thanks for your efforts! But I think I've narrowed the problem to my rx-51 keyboard configuration. I changed it a bit (added < > | ) which worked fine so far but maybe there is some side effect that didn't appear up to now.
This morning I noticed that Shift+Enter works mostly* fine. I'll restore the original rx-51 file later and see if that changes anything.

*) mostly means that Shift+Enter works instantly if I haven't pressed Enter in vfu before, that I have to hold Shift and press Enter twice if I have pressed Enter alone once and that I have to hold Shift and press Enter thrice if I've pressed Enter alone two or more times before.
Please don't ask me for an explanation of this behavior! ;)


All times are GMT. The time now is 22:15.

vBulletin® Version 3.8.8