eurogiciel-oss / connman-json-client

A ncurses UI for connman
GNU General Public License v2.0
31 stars 13 forks source link

Unable to access the connman_curses help with F1 #8

Open javier-lopez opened 9 years ago

javier-lopez commented 9 years ago

Hello,

Some window environments (kde, gnome, and also some terminal emulators) map F1 and other Fn keys to default actions and therefore it gets difficult to access some connman_curses features through those means.

I think than allowing to access connman_curses features through a vim-ex type interface could make easier to bypass those restrictions.

In vim:

  1. Open vim
  2. Type :help<Enter>
    • A help window is shown

Also it could make easier to create a connman_curses configuration file where users could define their own shortcuts, eg:

"hypotetical ~/.connman_cursesrc file
map Shift+h :help "now mapped to F1
map r :scan "now mapped to F6
map p :redraw "now mapped to F5
map c :configure "now mapped to s
map l :select "now mapped to Enter
map x :remove_favorite "now mapped to r
map h :go_back "now mapped to Esc
map j :move_down "now mapped to the `below arrow key`
map k :move_up "now mapped to the `up arrow key`
map Ctrl+c :quit "now mapped to Ctrl+c
alan-mushi commented 9 years ago

Hi, A vim-like solution is quite complex. I might be able to offer you the letter h though.