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-22-2012, 12:24 AM   #1
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
[Kindle Touch] JoppyTerm Alpha 0.1

Hi,

I have finally managed to get a basic terminal starting to work.
In it's current state, it's not that useful, as it does not yet support any of the ANSI control characters.

It can be used to run simple commands and get output. For example: ls, pwd, date, uname, ifconfig, etc.

Currently, to get the program to cleanly exit:
1 - Type "exit" at bash.
2 - touch the top right corner of the screen.

Once more of the basic features are implemented, I'll package it up to be run with from a menu, or maybe run as ";term" from the search bar or something. For now, I've been starting it via USB ssh.

Alpha 0.0
--------------

Working:
- Plain text entry (including upper case / symbols with the shift key)
- Plain text output
- Runs /bin/sh

Not yet working:
- ANSI / VT-100 control characters
- Backspace, delete, tab, etc.
- Bugs in scrolling
- Modifier keys other than shift
- Arrow keys

Features I'd add once the basics are fixed:
- Text-size option
- Terminal window size option (80x24 looks kinda small at the top of the screen)
- Tabs for multiple sessions at once
- Finger-drag scrolling back to look at past text.
- Option to change keyboard layout

Note: My source code is probably a bit of a mess. I wrote this on little sleep :P

This is a very early alpha release, so it's quite incomplete. But I'd thought I'd share what I've done so far. Hopefully I'll be able to squeeze in another update before my remaining exams next week, although, I can't be certain if I'll find too much free time.

Any feedback is welcome :3



UPDATE: Alpha 0.1
I've released a small update. This fixes the scrolling bug, and now comes with GUI Launcher support (http://www.mobileread.com/forums/sho...d.php?t=161263), so you can run the terminal without having to plug your kindle into your computer.
Attached Files
File Type: gz JoppyTerm_Alpha_0.0.tar.gz (16.1 KB, 93 views)
File Type: gz JoppyTerm_Alpha_0.1_Launcher.tar.gz (7.8 KB, 82 views)
File Type: gz JoppyTerm_Alpha_0.1_Source.tar.gz (15.0 KB, 60 views)

Last edited by JoppyFurr; 05-24-2012 at 09:56 PM. Reason: Updateed to Alpha 0.1
JoppyFurr is offline   Reply With Quote
Old 05-22-2012, 01:36 AM   #2
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,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Thanks. Need sleep now. I will check this out tomorrow. I wish I had more time too. TTYL...
geekmaster is offline   Reply With Quote
Old 05-22-2012, 09:10 AM   #3
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
weird keyboard...
wl. is offline   Reply With Quote
Old 05-22-2012, 09:16 AM   #4
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 wl. View Post
weird keyboard...
It's the Dvorak layout. I use that on my computer, phone, and pretty much any device I'm able to switch to it. It's nice and comfortable to type on, with around 70% of keystrokes on the home row, compared to about 30% with Qwerty.

Eventually I'll add an option to change keyboard layout.
JoppyFurr is offline   Reply With Quote
Old 05-22-2012, 09:25 AM   #5
knc1
Embedded Cheerleader
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,195
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by JoppyFurr View Post
It's the Dvorak layout. I use that on my computer, phone, and pretty much any device I'm able to switch to it. It's nice and comfortable to type on, with around 70% of keystrokes on the home row, compared to about 30% with Qwerty.

Eventually I'll add an option to change keyboard layout.
A good thing to keep on your to-do list.
Dvorak layout presupposes that a person is typing English.
The "one size fits none" QWERTY layout is not as single language oriented.
knc1 is offline   Reply With Quote
Old 05-22-2012, 09:40 AM   #6
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,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
According to this, the spread out keys of QWERTY can actually be faster because you often switch hands while typing on QWERTY (and language adapted variants like AZERTY):

http://www.utdallas.edu/~liebowit/keys1.html

I have a friend who used Dvorak keyboards for many years, but he finally gave up and went back to QWERTY because the "wrong reflexes" slowed him down when using a standard keyboard, which he could not avoid completely.

Last edited by geekmaster; 05-22-2012 at 09:47 AM.
geekmaster is offline   Reply With Quote
Old 05-22-2012, 01:09 PM   #7
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
JoppyFurr, did u think about porting something like xterm+matchbox-keyboard?
wl. is offline   Reply With Quote
Old 05-22-2012, 04:52 PM   #8
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 wl. View Post
JoppyFurr, did u think about porting something like xterm+matchbox-keyboard?
Nope. I didn't consider porting any existing software.

One of the things I want to do with this project is to get a more in-depth understanding of how a terminal emulator works. I want to do this by doing things by hand, making my own mistakes, and learning from them.
Porting an existing program would be plenty quicker to get working. But I just don't think I'd have learned very much from doing that. While the end product will be a working terminal emulator either way, I'd like the experience of doing this from scratch.
JoppyFurr is offline   Reply With Quote
Old 05-22-2012, 05:37 PM   #9
knc1
Embedded Cheerleader
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,195
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by JoppyFurr View Post
Nope. I didn't consider porting any existing software.

One of the things I want to do with this project is to get a more in-depth understanding of how a terminal emulator works. I want to do this by doing things by hand, making my own mistakes, and learning from them.
Porting an existing program would be plenty quicker to get working. But I just don't think I'd have learned very much from doing that. While the end product will be a working terminal emulator either way, I'd like the experience of doing this from scratch.
Good choice.
Although you don't mention it in your reasons, there are two other advantages:
You get only the fuctionality and features you want;
You know exactly what the dependencies are (and why).

PS: The suggestion given is a large body of code, not all that quick to port to anything.

So just keep on, keeping on.
knc1 is offline   Reply With Quote
Old 05-22-2012, 08:45 PM   #10
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,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
It's great to write code the way others want you to write it for them when they pay you to do it for them.

It's better to write code the way YOU want to because you love doing at and you are learning from it.

But the best way to write code is when you do what you want to, the way YOU want to do it, and you enjoy doing it and you are learning from it, and you are getting paid to do it.

A lot of the best software out there was written for for personal satisfaction, which made it a work of art and a work of love, and others loved it to.

So keep doing your stuff the way you want to, for the pure joy of doing it, and we will enjoy it too.
geekmaster is offline   Reply With Quote
Old 05-24-2012, 09:24 AM   #11
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: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by wl. View Post
JoppyFurr, did u think about porting something like xterm+matchbox-keyboard?
Hi,
I tried your suggestion and it works almost out of a box.
I only had minor issues with matchbox-keyboard. It won't work with text buttons, so I used image buttons from this project, which I slightly modified. Keyboard also seems to ignore key width in the config file. I will have to get back to it.
Now I want to package it and find a way to start in from menu. I must read this forum
I will share it with you when it is ready.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-05-24T14_57_47-0200.gif
Views:	103
Size:	27.1 KB
ID:	86798  
baf is offline   Reply With Quote
Old 05-24-2012, 10:01 PM   #12
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
I just edited my first post. Adding support for GUI Launcher and fixing the scrolling bug.

Next up will probably be work on letting the keyboard send signals (Ctrl-C, etc) and mapping the currently un-mapped keys (arrow keys, tab, etc). My evening is pretty free, so I may be able to get that working before bed tonight.
JoppyFurr is offline   Reply With Quote
Old 05-25-2012, 02:12 AM   #13
drauger
Enthusiast
drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.drauger has every book they ever wanted in electronic form on their reader.
 
drauger's Avatar
 
Posts: 31
Karma: 46558
Join Date: Feb 2012
Device: Kindle4NT
Quote:
Originally Posted by JoppyFurr View Post
Next up will probably be work on letting the keyboard send signals (Ctrl-C, etc) and mapping the currently un-mapped keys (arrow keys, tab, etc). My evening is pretty free, so I may be able to get that working before bed tonight.
Do you plan to add K4 support? I mean the opportunity to use FiveWay buttons to enter text.
drauger is offline   Reply With Quote
Old 05-25-2012, 03:27 AM   #14
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 drauger View Post
Do you plan to add K4 support? I mean the opportunity to use FiveWay buttons to enter text.
Hi,

At the moment, I don't have any plans for the terminal emulator outside of the Kindle Touch, seeing as the Touch is the only device that I have to play around with and test code on.

However, my source code is all open, and anybody is welcome to take a copy and modify it to work with the K4, or any other device.
JoppyFurr is offline   Reply With Quote
Old 06-01-2012, 02:02 AM   #15
roman220
Junior Member
roman220 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch 3G/Nook ST
Thank you, great application. Sorry for newbie question how can I change layout to qwerty? Thanks.
roman220 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
K5 Anybody working on terminal for Kindle Touch? markatlnk Kindle Developer's Corner 3 06-02-2012 10:07 AM
Kindle Touch Notice Folders Breaking My App SteveEisenberg Kindle Developer's Corner 0 03-11-2012 03:06 PM
Kindle Terminal app (sort of) lrizzo Kindle Developer's Corner 53 02-29-2012 05:14 PM
Nook App not working in Ipod touch? vs Kindle Rhonlynn Apple Devices 10 05-03-2011 09:22 AM
How well does the Kindle app work on the iPod Touch? shortywriter Apple Devices 2 06-13-2010 05:54 PM


All times are GMT -4. The time now is 07:52 PM.


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