09-17-2013, 04:57 PM | #31 |
Zealot
Posts: 117
Karma: 37584
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
|
09-17-2013, 09:23 PM | #32 | |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Version 1.7 is available
Hi,
Well, nothing is perfect;-) So there's a new version with a few minor changes: a) The font change step size when increasing or decreasing the font size can be set via the configuration file. b) If you've got a newer version of libinkview on your device the menu will appear centered below the point where you made a long tap (if it isn't too near to one of the borders of the screen). c) Again with newer libinkview versions you can use two-finger guestures to change the font size (move your fingers together to decrease or move them apart to increase the font size - larger movements result in larger changes and vice versa). Admittedly, with the last two changes (which aren't too important for usability) I got a bit adventurous since what I used there isn't documented or supported by the current version of the SDK. It's more a kind of proof of concept and not really essential, but hopefully could be interesting for others that are looking for how such things can be done. Of course, that stuff isn't anything I found out myself but is based on some other posts here from nearly a year ago (and, of course, 'rkomar' was one of the main contributors, as it's to be expected, see https://www.mobileread.com/forums/sho...d.php?t=197207, which I just found today. Quote:
Best regards, Jens |
|
Advert | |
|
09-18-2013, 06:00 AM | #33 |
Zealot
Posts: 117
Karma: 37584
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
Hi Jens
tried 1.7: almost (... just to leave room to your improvements) perfect! font change gestures works well, even inside $top as for pi-editor here is the link in this forum: https://www.mobileread.com/forums/sho...d.php?t=158571 Last edited by paolog; 09-18-2013 at 06:16 AM. |
09-19-2013, 09:56 PM | #34 | |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Quote:
On the other hand, there's a vi already installed on these devices -an via pbterm I was able to start and get out of it. While not being a big fan of vi it's a real editor, so all the stuff that had to be written for the pi editor is already available there - so why re-invent the wheel? Thus, instead of trying to fiddle with the pi editor (which seems to be quite complex and then also relies on pbtk), I'd first try to get vi running with a custom made keyboard (with an ESC key, of course;-) always open on the screen. I haven't yet given much thought to it, but I guess that would be what I'd explore first before trying anything more fancy like messing around with the pi editor. Best regards, Jens |
|
09-20-2013, 04:37 AM | #35 |
Zealot
Posts: 117
Karma: 37584
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
Hi Jens
you're right, unfortunately it was for stylus based reader. It (or pb622) has some hide gestures (to tell the truth I didn't read the 'readme' file) so now I'm get used to it. For my porpuse (i.e. to modify settings file on the fly) it is enough vi un my pb is for very jeeks! from my point of view isn't very friendly too due to the interface with escape chars bye Paolo |
Advert | |
|
09-20-2013, 06:24 AM | #36 |
Wizard
Posts: 3,025
Karma: 18765431
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
vi is my preferred editor, but as you say, with the necessity for the escape and control keys, it was never going to be easy to use with a software keyboard, even if the terminal behaviour is solved. A line editor seems a better choice, which is more or less what the Pi editor is.
|
09-20-2013, 09:44 AM | #37 | |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Quote:
Best regards, Jens |
|
09-20-2013, 10:31 AM | #38 | |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Quote:
But, of course, the vi editor on the PB as it is is unusable (unless you manage to e.g. telnet into the device). We'll need some program interfacing with it on the device. Then it might become useful for stand-alone work like editing a configuration file. Let's see;-) Best regards, Jens |
|
09-20-2013, 11:55 AM | #39 |
Zealot
Posts: 117
Karma: 37584
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
hi
not only those on my pb this is what I see ( '*' here are 'square' char on PB): Code:
$vi *[1;1h*[0J *~ *~ *~ *~ *~ *~ *~ *~*[1;1H*[24;1H*[OK- No file 1/1 100%*[1;1H |
09-20-2013, 12:23 PM | #40 |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
That's to be expected - vi sends VT102 escape sequences that e.g. tell the terminal where to put the cursor etc. (e.g. "<ESC>[24;1H" tells it to draw the next character at the first position in line 24) and they aren't interpreted by pbterm (which is much too simple-minded for that). Thus to get vi to run in some useful way you'll need a program that "talks" to vi, interprets all those escape sequences and then presents what it got back from vi in some human-readable form. Without that vi isn't usable on the PB. And you also will need a different keyboard that sends each characters as it is typed in immediately to vi.
I'm just looking into that. Unfortunately, the vi that comes with BusyBox is already rather limited in what it can do, and then the guys at PocketBook configured it in a way that cuts it further down to the bare bones. The worst is that they didn't enable window resizing, so it always expects to be connected to a 80x24 terminal, which, of course, is rather large for the PB screens (ok, you may display 24 lines with a still readable font, but then you'll never be able to show 80 characters per line). That won't make it any easier. Perhaps it would be better to install a "real" vi and then work with that instead of trying to work around all the limitations of this castrated version of vi... Best regards, Jens |
09-20-2013, 02:12 PM | #41 | |
Wizard
Posts: 3,025
Karma: 18765431
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
I got WiFi working and used sshd and utelnetd for shell access after that, and never looked back. If you think the software keyboard sucks on your Touch device, you should see what it's like on the button-only devices like my 902 (three button presses on average per character, and much more for the special ones). |
|
09-20-2013, 05:03 PM | #42 | |||
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Quote:
I just succeeded in building vim without ncurses/termcap (just for a VT100) for x86 and the next step is to try to built it for arm. If that works we'll have a full vim for the pocketbook instead of the rather crippled version that comes with the device (that might even be useful for you when you telnet/ssh into the device and need to do some editing). Let's see if that works;-) The following step then would be to write a VT100 emulator that understands all the escape sequences this vim version knows about with a keyboard that's usable for editing with vi. the icing on the cake would be if one could place the cursor also using taps on the screen;-) Quote:
But even then I guess being able to edit a few files when one isn't near a "real" computer (like when one is travelling) might still be useful. Quote:
Best regards, Jens |
|||
09-20-2013, 05:38 PM | #43 |
Junior Member
Posts: 6
Karma: 10
Join Date: Sep 2012
Device: pocketbook touch 622
|
works fine with pocketbook touch 622. Thanks ! does not work over pocketbook pro 912.
|
09-20-2013, 09:47 PM | #44 | |
Connoisseur
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
|
Quote:
Best regards, Jens |
|
09-24-2013, 11:29 AM | #45 |
Zealot
Posts: 117
Karma: 37584
Join Date: Nov 2012
Location: Milan / Italy
Device: pocketbook touch 622
|
hi Jens
I'm back could you add a 'free' command in the panel called by the tap in the low left corner? For istance I've copied some arm binaries in /mnt/ext2/bin/ (I want those there instead to put those in /mnt/ext1/system/bin) once I need them I have either to type $/mnt/ext2/bin/find (for istance) or to modify the path obviously isn't so annoying, I've the history or I can type, but if I had such shortcut it could be more useful to set the path with it |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Terminal-Programm für PB622 und 623 | jtt | PocketBook | 9 | 09-15-2013 12:56 PM |
New user questions PB622 | muntesco | PocketBook | 2 | 02-02-2013 09:29 AM |
Zeiteinstellungen PB622 | fr3d | PocketBook | 5 | 07-11-2012 02:00 PM |
wlan mit pb622 | sebigbos | PocketBook | 13 | 07-11-2012 10:03 AM |
Tastatursperre PB622 | fr3d | PocketBook | 1 | 07-03-2012 04:20 AM |