![]() |
One more terminal emulator for kindle.
1 Attachment(s)
I worked a little on kiterm and produced a version that works alongside launchpad, instead of replacing it. This file can be installed by using launchpad installation (copy to /mnt/us/customupdates and press shift shift I), or directly by unzipping under /mnt/us.
Source code is at: http://my.svgalib.org/kindle/myts-6.tar.gz Changes compared to lrizzo's kiterm (and to modifications by Xqtftqx, PoP, dsmid):
After installing, the default launchpad configuration (in the file /mnt/us/launchpad/myts.l.ini) is: T T = start (or return to) terminal 1 T Y = start (or return to) terminal 2 T U = start (or return to) terminal 3 T A = kill myts To display the keyboard mapping press any modifier (shift, menu, back, aA) and exit button (by default Left<). Code:
Menu:Fonts use "hex" format. A perl script is included that converts bdf fonts to hex. Since the fonts do not include width/height information, this must be provided in the configuration file (/mnt/us/myts/myts.ini). Fonts of width at most 8 may be used. An encoding file is simply a 512 bytes binary file where the nth 16 bit word is the unicode value of char n. A script to generate such files is included. To enable the scroll back buffer, use the configuration file option ScrollbackLines to set the number of lines saved in the buffer. A value of 0 (default) disables scroll back. I the default configuration file, the right page scrolling keys are used for scrollback, but this is configurable. |
Great work! I haven't had time to try it out but it looks very nice!
|
Very nice, Matan. It's almost perfect.
I miss one feature though. I always keep forgetting the keyboard mapping and it would be great to be able to quickly toggle displaying current mapping with a key stroke. |
@dsmid echo "cat /mnt/us/myts/printkeys.txt" >> /usr/bin/printkeys
then write the keymap to the text file. @OP, awesome work man, kiterm stopped working today and this works beautifully. Would you be able to add ctrl modifier support? |
This looks like it will be great, will try it out later after work.
Does this version still support tab through back + a. I found this very useful in the full screen version of he previous terminal emulator as it allows you to use tab complete for commands. My kindle is in need of some clean up on the side of terminal emulators and opt ware. At least I now have an excuse to switch to launchpad and clean up my root partition. |
aA key is ctrl (configurable). This did not change from kiterm
Tab is Menu+z. (listed as \t in the keymap). For file name completion in shell you can use ctrl+i when Tab is not available. |
Quote:
When I think about it, it doesn't have to be a script, an alias seems to be more suitable. It's still more a workaround then a solution. Often you need to display the mapping after typing long command. Maybe I could dedicate one terminal instance for displaying help. |
I update first post with new version, which includes keymap display screen (modifier+exit button) this screen is displayed while the key is pressed.
I have three test cases and they all have issues: top - at exit it does not scroll, so the shell prompt displays on the last line of top. htop - when a program with a short name is printed on a line where a program with a long name was, the remaining letters are displayed. alpine - the keyboard command lines are not displayed on the bottom two rows, but one row above. I do not even know if the problems come from line wrapping issues, unhandled escape sequence or a mishandled escape sequence. If anyone has an idea, or a simpler test case, |
It's awesome! With this terminal the USBNetworking becomes (nearly) redundant! Great work!
|
Perfect !
Thanks a lot. Just a side note: The F-keys on the help screen are zero-based and hexadecimal :) e.g. F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB |
First post updated with revision 5:
More escape sequences (scroll down, origin mode). Now top, htop and alpine appear to work without display glitches. F numbers in keymap display fixed. |
Thanks Matan. I am convinced and I have now switched to original launchpad + your version 5 of myts.
Echoing Dsmid, I miss one feature too. I also always keep forgetting the keyboard mapping and since you have plenty of room to expand, I would like the Menu+Left< recently added help screen, to display in some way, more information. Completing the help, these additional mappings: ESC --- Left> CTRL --- Aa 1 to 0 --- Alt+q to Alt+p UP, DOWN, LEFT, RIGHT --- Fw_Up, Fw_Down, Fw_Left, Fw_Right PgUP, PgDown --- Shift+Fw_Up, Shift_Fw_Down Home, End --- Home, Shift+Home Back --- left symbol on help screen Menu --- right symbol on help screen Applying some corrections: The F10, F11 and F12 are still displayed as FA, FB, FC on the help screen The right tab, left tab --- back+z, shift+back+z are not obvious and currently show as an invalid character (white on black question mark) maybe would it be more explicit if depicted as => and <=. Did I forget any other key modifier sequence? Thanks anyway. This is a great update. |
Another revision. Two main things:
1. Scroll back buffer. See myts.ini for details. 2. Two new escape sequences supported. |
Could anyone send a screenshot of this emulator?
|
Running on DXG requires keydefs.ini changes
Following changes introduced into keydefs.ini before [inkeys-dx] makes this very useful full-screen terminal working on DXG nicely, thanks Matan for your work!
Quote:
Reading man pages will never be same again :-) |
| All times are GMT -4. The time now is 07:06 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.