05-28-2012, 06:46 PM | #31 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
In the meantime I updated my XTerm package. I added keyboard shortcuts to open popup menus and change font size.
You can also easily customize terminal, shortcuts or fonts by editing Xresources file in xterm/layouts folder within the package. |
|
05-28-2012, 07:08 PM | #32 |
BLAM!
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@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). |
Advert | |
|
05-28-2012, 07:16 PM | #33 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
05-28-2012, 07:38 PM | #34 |
Wizard
Posts: 1,379
Karma: 2155307
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.
|
05-28-2012, 08:08 PM | #35 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
Advert | |
|
05-29-2012, 03:00 AM | #36 |
Enthusiast
Posts: 27
Karma: 5790
Join Date: Jan 2009
Location: moscow, russia
Device: Kindle Touch, Sony PRS-505
|
wow, midnight commander looks really nice now
|
05-29-2012, 03:28 AM | #37 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
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 Last edited by baf; 05-29-2012 at 03:32 AM. |
|
05-29-2012, 06:28 AM | #38 | |||
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Quote:
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:
Quote:
|
|||
05-29-2012, 07:33 AM | #39 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
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, https://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. |
05-29-2012, 07:43 AM | #40 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Last edited by geekmaster; 05-29-2012 at 08:07 AM. |
|
05-29-2012, 07:55 AM | #41 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Keep on coding JF, this project has not replaced what you are doing. |
|
05-29-2012, 03:57 PM | #42 | |
Coding fuzzball
Posts: 16
Karma: 38918
Join Date: May 2012
Device: Kindle Touch
|
Quote:
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. |
|
06-03-2012, 11:59 AM | #43 |
Junior Member
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.
|
06-03-2012, 12:09 PM | #44 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
06-03-2012, 12:19 PM | #45 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch 3G/Nook ST
|
|
Tags |
launcher add-ons |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Progress] Jailbreaking Kindle 4.0 (Touch/No Keyboard) | yifanlu | Kindle Developer's Corner | 434 | 04-22-2016 10:29 AM |
Battery life in kindle keyboard an kindle non touch. | ersott | Amazon Kindle | 24 | 10-30-2013 04:33 AM |
[Kindle Touch] Touch-screen keyboard demo | JoppyFurr | Kindle Developer's Corner | 6 | 05-19-2012 11:04 AM |
Kindle Touch add new keyboard | Novas | Kindle Developer's Corner | 2 | 01-12-2012 08:29 AM |
Matchbox Keyboard Update | Grimulkan | iRex | 17 | 05-13-2009 04:24 PM |