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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2012, 07:46 PM   #31
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by aditya3098 View Post
Weird bug detected! If my command starts with "ipkg" then it freezes before I finish the command.
I can't replicate this bug.

In the meantime I updated my XTerm package. I added keyboard shortcuts to open popup menus and change font size.
  • <ALT> 1 => opens popup main menu
  • <ALT> 2 => opens popup vt menu
  • <ALT> 3 => opens popup font menu
  • <ALT> - => decreases font size
  • <ALT> = => increases font size

You can also easily customize terminal, shortcuts or fonts by editing Xresources file in xterm/layouts folder within the package.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-05-29T00_07_40-0200.gif
Views:	133
Size:	15.6 KB
ID:	87035   Click image for larger version

Name:	screenshot_2012-05-28T23_25_27-0200.gif
Views:	148
Size:	16.1 KB
ID:	87036  
baf is offline   Reply With Quote
Old 05-28-2012, 08:08 PM   #32
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,240
Karma: 5164853
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
@aditya3098: Wild guess: Broken bash auto-completion stuff?

(I don't use bash, but when I'm messing around with zsh and the auto-complete stalls, it 'hangs' @ 100% CPU until I ^C).
NiLuJe is offline   Reply With Quote
Old 05-28-2012, 08:16 PM   #33
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,991
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by baf View Post
I can't replicate this bug.

In the meantime I updated my XTerm package. I added keyboard shortcuts to open popup menus and change font size.
  • <ALT> 1 => opens popup main menu
  • <ALT> 2 => opens popup vt menu
  • <ALT> 3 => opens popup font menu
  • <ALT> - => decreases font size
  • <ALT> = => increases font size

You can also easily customize terminal, shortcuts or fonts by editing Xresources file in xterm/layouts folder within the package.
A question -
I don't see a row for function keys, f1..f10(12) but I do see a "F" meta key.
So are the function keys generated with the F 1 .. F 10 key pair sequence?
If so, does <ALT> F 1 sequence work? Or will it work before your done?

The reason I ask, the virtual terminals are accessed via <ALT>F1 ... <ALT>F10 (or F12) - however many of them you have turned on in /etc/inittab.
knc1 is offline   Reply With Quote
Old 05-28-2012, 08:38 PM   #34
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,216
Karma: 2116649
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
In fact, the terminals you can access on a typical Unixoid system nowadays are virtual, but not pseudo terminals. The OS presents them as /dev/ttyN, not /dev/ptyN / /dev/pts/N. xterm however will create a pseudo terminal. You can't switch among these with ALT-F<n>, since they do not necessarily have "siblings". However, you can use a terminal multiplexer like screen or tmux to archieve a similar effect. I'm using tmux within myts here on my K3.
hawhill is offline   Reply With Quote
Old 05-28-2012, 09:08 PM   #35
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,991
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by hawhill View Post
In fact, the terminals you can access on a typical Unixoid system nowadays are virtual, but not pseudo terminals. The OS presents them as /dev/ttyN, not /dev/ptyN / /dev/pts/N. xterm however will create a pseudo terminal. You can't switch among these with ALT-F<n>, since they do not necessarily have "siblings". However, you can use a terminal multiplexer like screen or tmux to archieve a similar effect. I'm using tmux within myts here on my K3.
Hmm...

Capturing the alt-F* keys is a function of the keyboard handling, not of xterm (in this thread, of matchbox-keyboard).
The function is to start (and switch to) another instance of xterm on another /dev/tty* (of those with a handler assigned in /etc/inittab).

A terminal multiplexer, does just that, multiplexes a single terminal instance, not create a new one. Those applications are from the days when the user only had a single set of wires to a single, physical, terminal interface.
Not related to my question concerning keyboard handling in matchbox-keyboard.
knc1 is offline   Reply With Quote
Old 05-29-2012, 04:00 AM   #36
wl.
Enthusiast
wl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toyswl. shares his or her toys
 
Posts: 27
Karma: 5790
Join Date: Jan 2009
Location: moscow, russia
Device: Kindle Touch, Sony PRS-505
wow, midnight commander looks really nice now
wl. is offline   Reply With Quote
Old 05-29-2012, 04:28 AM   #37
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
A question -
I don't see a row for function keys, f1..f10(12) but I do see a "F" meta key.
So are the function keys generated with the F 1 .. F 10 key pair sequence?
As far as matchbox-keyboard is concerned it handles <Fx> keys. You change layout pressing "ã/F" key. See screenshot.
But it will not change terminal for reasons mentioned by Hawhill.
Also I noticed that some keystokes are intercepted by kindle. This is the case with <Fx> keys. You may overcome this by selecting securekbd option (which ensures that input is directed only to xterm) from XTerm popdown menu.
<Fx> keys are not pair sequences. They have their own character codes. For example <F1> sends 0xffbe. For more keycodes see for example here.

Edit: By the way, the only KT key sends 0xff50, which is mapped to <home> key
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-05-29T08_47_12-0200.gif
Views:	118
Size:	11.8 KB
ID:	87043  

Last edited by baf; 05-29-2012 at 04:32 AM.
baf is offline   Reply With Quote
Old 05-29-2012, 07:28 AM   #38
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,216
Karma: 2116649
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Quote:
Originally Posted by knc1 View Post
Capturing the alt-F* keys is a function of the keyboard handling, not of xterm (in this thread, of matchbox-keyboard).
Well, to some extent. I can only speak for Linux, but there, it's as follows: The Kernel switches from using pure /dev/console over to /dev/ttyN when sysvinit tells it to. On /dev/ttyN, the kernel will typically handle ALT-F* and switch VGA console output between the /dev/ttyN devices. When X is running, it captures one of the /dev/ttyN devices, nowadays often overriding the ALT-F* combinations. Note that the Kernel will only switch between the *virtual* terminals /dev/ttyN here. Also, the Kernel is the instance that runs the terminal emulation for /dev/ttyN.

Graphical terminals however don't use the virtual terminals /dev/ttyN. They use pseudo terminals. For those, there is always a _pair_ of devices. Nowadays this will be the /dev/ptmx (single master for all slaves) and /dev/pts/N (slave terminal, this side is for terminal clients).
This mechanism is what xterm uses. You can't switch from pseudo terminals to virtual terminals: just try on a desktop in xterm to switch. All you potentially get is a full screen VGA terminal, but xterm has nothing to do with that, that's kernel based switching between virtual terminals, i.e. the whole X session and another virtual tty.

Quote:
The function is to start (and switch to) another instance of xterm on another /dev/tty* (of those with a handler assigned in /etc/inittab).
Possible, but a multiplexer will do that for you, too.

Quote:
A terminal multiplexer, does just that, multiplexes a single terminal instance, not create a new one. Those applications are from the days when the user only had a single set of wires to a single, physical, terminal interface.
Not related to my question concerning keyboard handling in matchbox-keyboard.
Well, it creates a new terminal device (or uses a new terminal device for old PTY style rather than PTS) for the sub-sessions of the "multiplexer". And in fact, tmux is relatively new, not from an old era. There's still good use for those applications today. An additional benefit is that you can keep your terminal session running in the "background" (detach/reattach).
hawhill is offline   Reply With Quote
Old 05-29-2012, 08:33 AM   #39
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,991
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Yes, indeed, I follow all of that.
A nice, clear, explaination for the benefit of those readers less experienced here.

What I was asking about would have been __non-standard__ behavior that (after thinking / sleeping on the question) would require that (since this is running under X) <CTRL><ALT>F* to start another instance on a __different__ X11 display (which would be on a different /dev/tty* - since one is already captured).

Not impossible, but probably not worth the programming effort.

Which gets me to where I was headed anyway.

So while this "heavy weight" on-Kindle terminal display is useful in itself;
The other project here, http://www.mobileread.com/forums/sho...d.php?t=178983 of JoppyFur is also still useful.

If it does not involve (I don't think it is an X11 app) the graphical display system, then it would be much easier to add virtual terminal support to that project.

Since the majority of the readers on this forum are probably not *nix users, it may be hard for them to imagine "why" support for the multiple virtual terminals would be useful.

Answering those questions might lead to a fairly long thread, and it would be probably better to open a "VT Support" thread once JF gets his project closer to being finished.
knc1 is offline   Reply With Quote
Old 05-29-2012, 08:43 AM   #40
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by knc1 View Post
...
So while this "heavy weight" on-Kindle terminal display is useful in itself;
The other project here, http://www.mobileread.com/forums/sho...d.php?t=178983 of JoppyFur is also still useful.

If it does not involve (I don't think it is an X11 app) the graphical display system, then it would be much easier to add virtual terminal support to that project.
JoppyFur's terminal uses only native mode access to the framebuffer and input event devices, based on methods that I published in "signature capture" and "eink algorithmic art" threads, also used in my published C programs. JoppyFur's program can run with the framework stopped, so it can be used in a RUNME.sh script for debricking purposes. With minor changes (different input device), it can be used when booting from diags as well. In my sigcap script, I scan input devices searching for the "zforce" touchscreen device, so it works on both main and diags.

Last edited by geekmaster; 05-29-2012 at 09:07 AM.
geekmaster is offline   Reply With Quote
Old 05-29-2012, 08:55 AM   #41
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,991
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by geekmaster View Post
JoppyFur's terminal uses only native mode access to the framebuffer and input event devices, based on methods that I published in "signature capture" and "eink algorithmic art" threads, also used in my published C programs. JoppyFur's script can run with the framework stopped, so it can be used in a RUNME.sh script for debricking purposes. With minor changes (different input device), it can be used when booting from diags as well. In my sigcap script, I scan input devices searching for the "zforce" touchscreen device, so it works on both main and diags.
So there is another list of good reasons for JF to continue his work.
Keep on coding JF, this project has not replaced what you are doing.
knc1 is offline   Reply With Quote
Old 05-29-2012, 04:57 PM   #42
JoppyFurr
Coding fuzzball
JoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exerciseJoppyFurr juggles running chainsaws for a bit of light exercise
 
JoppyFurr's Avatar
 
Posts: 16
Karma: 38918
Join Date: May 2012
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
So there is another list of good reasons for JF to continue his work.
Keep on coding JF, this project has not replaced what you are doing.
Hi,

Yeah, I'm still working on my terminal when I have time. After the end of this week I'll be on by break between semesters one and two, so will be able to get a good chunk of development in. However, for the rest of this week, I have two more exams, so won't have much coding time 'til after they are over.

I do plan on eventually having a tabbed interface for multiple terminal sessions running in parallel.
JoppyFurr is offline   Reply With Quote
Old 06-03-2012, 12:59 PM   #43
roman220
Junior Member
roman220 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch 3G/Nook ST
upper C

I recently install xterm app, but seems to be pressing upper key "C" does nothing, lower one works. Am I unlucky or is it a real bug? Thanks.
roman220 is offline   Reply With Quote
Old 06-03-2012, 01:09 PM   #44
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by roman220 View Post
I recently install xterm app, but seems to be pressing upper key "C" does nothing, lower one works. Am I unlucky or is it a real bug? Thanks.
You have source code. You can answer your own question. If you find a bug, you can even fix it.
geekmaster is offline   Reply With Quote
Old 06-03-2012, 01:19 PM   #45
roman220
Junior Member
roman220 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch 3G/Nook ST
Quote:
Originally Posted by geekmaster View Post
You have source code. You can answer your own question. If you find a bug, you can even fix it.
I don't feel "the force with me" yet... Im unfamilar with Kindle developing, but trying to get into ) geekmaster, did the "C" works on your one? )
roman220 is offline   Reply With Quote
Reply

Tags
launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Battery life in kindle keyboard an kindle non touch. ersott Amazon Kindle 24 10-30-2013 05:33 AM
[Progress] Jailbreaking Kindle 4.0 (Touch/No Keyboard) yifanlu Kindle Developer's Corner 429 10-22-2012 09:58 PM
[Kindle Touch] Touch-screen keyboard demo JoppyFurr Kindle Developer's Corner 6 05-19-2012 12:04 PM
Kindle Touch add new keyboard Novas Kindle Developer's Corner 2 01-12-2012 09:29 AM
Matchbox Keyboard Update Grimulkan iRex 17 05-13-2009 05:24 PM


All times are GMT -4. The time now is 08:40 AM.


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