Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2014, 04:11 PM   #61
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
As I mentioned in the gdb thread, gdb actually works properly when run within pbterm. That is so helpful to me. I wonder if other ncurses-based programs also work within pbterm? I'll have to try and see.
rkomar is offline   Reply With Quote
Old 04-13-2014, 05:09 PM   #62
jtt
Connoisseur
jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.
 
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
Quote:
Originally Posted by rkomar View Post
I wonder if other ncurses-based programs also work within pbterm? I'll have to try and see.
Unfortunately, I'm rather sure that they won't work since this isn't a real terminal emulator. The program basically just prints out what it gets from the program run and doesn't have any special treatment for terminal escape sequences, sorry:-( Would be an interesting excercise to extend it to emulate e.g. a VT100...

I'm actually astonished that gdb works well enough, given that it seems to be linked against the ncurses library (at least my desktop version). Perhaps you just didn't use anything in it that would have send escape sequences?

Best regards, Jens
jtt is offline   Reply With Quote
Advert
Old 04-13-2014, 05:29 PM   #63
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by jtt View Post
Unfortunately, I'm rather sure that they won't work since this isn't a real terminal emulator. The program basically just prints out what it gets from the program run and doesn't have any special treatment for terminal escape sequences, sorry:-( Would be an interesting excercise to extend it to emulate e.g. a VT100...

I'm actually astonished that gdb works well enough, given that it seems to be linked against the ncurses library (at least my desktop version). Perhaps you just didn't use anything in it that would have send escape sequences?

Best regards, Jens
I think you're right about it not using any special escape sequences. gdb is very much like an ordinary shell, in that it doesn't need any editing capabilities. You enter a command and new stuff gets printed out.

For fun, I tried running vi within pbterm. It was a mess, of course, as expected.
rkomar is offline   Reply With Quote
Old 04-15-2014, 04:22 PM   #64
jtt
Connoisseur
jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.
 
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
Quote:
Originally Posted by rkomar View Post
\For fun, I tried running vi within pbterm. It was a mess, of course, as expected.
I deinitely would have been very astonished if it had worked. But you know where to find a hopefully usable vi version for the 623 if you need it;-)
Best regards, Jens
jtt is offline   Reply With Quote
Old 04-15-2014, 05:12 PM   #65
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by jtt View Post
I deinitely would have been very astonished if it had worked. But you know where to find a hopefully usable vi version for the 623 if you need it;-)
Best regards, Jens
Yes, I had installed it a few weeks ago. It works nicely, considering that you have to use the software keyboard. I prefer using vi or vim from a remote connection since it's easier to type that way, but it's good to have a local version if necessary.
rkomar is offline   Reply With Quote
Advert
Old 07-16-2014, 07:32 PM   #66
Dimitko
Junior Member
Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.Dimitko can self-interpret dreams as they happen.
 
Posts: 5
Karma: 20706
Join Date: Jul 2014
Location: Bulgaria
Device: Pocketbook 626 Touch Lux 2
Thank you!

I just want to say one big THANK YOU!
I confirm that it works like a charm on Touch Lux 2 (626)!
Dimitko is offline   Reply With Quote
Old 07-21-2014, 05:56 PM   #67
jtt
Connoisseur
jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.
 
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
Hi Dimitko,

Quote:
Originally Posted by Dimitko View Post
I confirm that it works like a charm on Touch Lux 2 (626)!
Thank you, it's nice to know that it also works properly on the 626. So I guess I can add that to the documentation;-)

Best regards, Jens
jtt is offline   Reply With Quote
Old 01-29-2015, 07:22 AM   #68
brucelee
Addict
brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.
 
Posts: 352
Karma: 188498
Join Date: Jan 2015
Location: Romania
Device: Kobo Aura One
Works fine with PocketBook Basic Touch 624. Thanks.
brucelee is offline   Reply With Quote
Old 11-24-2019, 05:41 AM   #69
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 895
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
It works on the Pocketbook Inkpad 3 Pro aka pb740-2. Thank you!

Can the screenlength be tuned? The last lines disappear beneath the bezel.

Last edited by Markismus; 11-24-2019 at 05:46 AM.
Markismus is offline   Reply With Quote
Old 11-24-2019, 10:22 AM   #70
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
I think you would need to modify the source code and build your own version to tune the margins. There are variables for the x and y margins in the code, but it looks like they are left at the default values (which I assume are '0'). It's been a long time since I coded in C++, but I vaguely remember that you could set a default value for the margins in the definition of the Lines() constructor in Lines.hpp. It's probably very easy if you know C++.

Last edited by rkomar; 11-24-2019 at 10:24 AM.
rkomar is offline   Reply With Quote
Old 12-01-2019, 06:42 AM   #71
jtt
Connoisseur
jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.jtt composes epic poetry in binary.
 
Posts: 97
Karma: 90350
Join Date: Aug 2013
Location: Berlin, Germany
Device: PB 622, PB 623
Hi Markismus,

just uploaded a new version (1.9) where the x- and y-margin can be adjusted via the pbterm.cfg file by entries like

x_margin : 100
y_margin : 25

Allowed range is 0 to 1000 pixel (default is 10). The configuration file needs to be copied to system/config/. Hope that solves the problem.

Best regards, Jens
jtt is offline   Reply With Quote
Old 12-01-2019, 10:01 AM   #72
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 895
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
Great! I'll try it.
Markismus is offline   Reply With Quote
Old 05-01-2022, 01:33 PM   #73
Clort
Member
Clort began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2022
Device: inkbook color 741
pbterm working on PB741

Woot! Root!

Thanks for going the extra mile with the keyboard layout, for shell work.

Clort is offline   Reply With Quote
Old 09-14-2023, 12:05 PM   #74
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 4,793
Karma: 7629859
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Made a few tweaks to the source to scale pbterm to the screen a little better on newer devices. The top area of the screen was unused and once the text reached the bottom of the screen you'd lose a line or two, with some text wrapping around to the top of the screen.

I also set the HOME key to toggle between portrait and landscape.

From reading through the code I spotted a couple of features I was unaware of that others may also appreciate:

Long press of PREV and NEXT buttons decrease and increase the text size.

Tapping the top-left corner of the screen quickly exits the app.
Attached Files
File Type: zip pbterm.zip (62.2 KB, 23 views)
neil_swann80 is offline   Reply With Quote
Old 09-14-2023, 01:16 PM   #75
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 578236
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Thanks @neil_swann80, most appreciated. Text size increase/decrease was something I wasn't aware too (and missing it).
nhedgehog is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal-Programm für PB622 und 623 jtt PocketBook 9 09-15-2013 11:56 AM
New user questions PB622 muntesco PocketBook 2 02-02-2013 08:29 AM
Zeiteinstellungen PB622 fr3d PocketBook 5 07-11-2012 01:00 PM
wlan mit pb622 sebigbos PocketBook 13 07-11-2012 09:03 AM
Tastatursperre PB622 fr3d PocketBook 1 07-03-2012 03:20 AM


All times are GMT -4. The time now is 08:27 PM.


MobileRead.com is a privately owned, operated and funded community.