Terminal emulator

1,013 views
Skip to first unread message

Affe null

unread,
May 28, 2020, 1:49:21 PM5/28/20
to comp.mobile.nokia.8110
Hello,
I was developing a terminal emulator for KaiOS. It is ready to be released as a beta version.
It supports only move-cursor and clear-screen escape sequences.
The app starts a telnet server listening on 127.0.0.1 (localhost) and connects to it with the mozTCPSocket API.
Use the call key as control key, '#' to toggle lowercase/uppercase, left soft key as tab.
Special characters (key 1): . , ? ! 1 ; : / @ - + _ = $ | < >

The app has been tested on Nokia 8110 4G.


Since the app uses the telnet protocol, there is no way for a program running in the terminal to know the screen size. To explicitly specify it: enter
export LINES=13 COLUMNS=20
into the terminal.

Affe null

unread,
May 28, 2020, 3:14:28 PM5/28/20
to comp.mobile.nokia.8110
UPDATE: added icon

Affe null

unread,
May 29, 2020, 3:05:18 AM5/29/20
to comp.mobile.nokia.8110
The terminal size is set in the environment of the telnet server, so you don't need the export command

Farooq Karimi Zadeh

unread,
May 29, 2020, 3:05:28 AM5/29/20
to banana...@googlegroups.com
Great! Please put it in perry's store app :)
On 28/05/2020 23:44, Affe null wrote:
UPDATE: added icon

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/dbbcf044-7e11-41e3-8a82-3f8c56ba3ba5%40googlegroups.com.

Affe null

unread,
May 29, 2020, 5:17:40 AM5/29/20
to comp.mobile.nokia.8110
Submitted a merge request to the store repository

Affe null

unread,
May 30, 2020, 4:37:58 AM5/30/20
to comp.mobile.nokia.8110
UPDATE - added support for bold font, color and line-drawing characters

Farooq Karimi Zadeh

unread,
May 30, 2020, 4:50:41 AM5/30/20
to banana...@googlegroups.com

Cool! By the way is my git2omnisd script useful for you(with some modification or without modding)?

https://notabug.org/farooqkz/git2omnisd

Monish Ali

unread,
Jun 2, 2020, 2:49:03 AM6/2/20
to comp.mobile.nokia.8110
great but some button not work ex. * button not work

Affe null

unread,
Jun 2, 2020, 4:28:18 AM6/2/20
to comp.mobile.nokia.8110
The * button is not implemented yet.

Farooq Karimi Zadeh

unread,
Jun 2, 2020, 4:51:40 AM6/2/20
to banana...@googlegroups.com

I just noticed that your app is a certified app and thus can be installed just through WebIDE. Not OmniSD and not perry's store(Am I wrong?).

Affe null

unread,
Jun 2, 2020, 12:03:00 PM6/2/20
to comp.mobile.nokia.8110
It installs with store app on GerdaOS, don't know about stock, but probably will work too
Message has been deleted

Affe null

unread,
Jun 4, 2020, 8:20:59 AM6/4/20
to comp.mobile.nokia.8110
Update: * update implemented. It lets you input special characters and also change the default foreground/background colors. Some escape sequences that were shown as text have been hidden and partially implemented.
Message has been deleted

Affe null

unread,
Jun 11, 2020, 12:52:49 PM6/11/20
to comp.mobile.nokia.8110
Your phone might not have busybox installed. Download the static ARM binaries from http://www.busybox.net and copy them to /system/bin (breaks updates, root required) or /data/local/tmp. Then chmod 777 /path/to/busybox (via adb) and edit the path in launch-telnet.js in the source code. Repackage the app and reboot the phone to clear cache. Then reinstall the new app.

Luxferre

unread,
Jul 2, 2020, 3:02:41 PM7/2/20
to comp.mobile.nokia.8110
I think I'm going to create some "busybox installer" app that installs it into /sbin until the next reboot without breaking updates, in the fashion of Wallace Spreadtrum Kitkat or Wallace sKai Edition. The only obstacle might be that temporary unpacking paths might differ for different architectures.
Message has been deleted
Message has been deleted

Hamid Shahsavani

unread,
Jul 3, 2020, 7:53:59 PM7/3/20
to comp.mobile.nokia.8110
tanks, how to zoomout in terminal?
how to scroll down?
how to use tab key?

and terminal font so big :))

Affe null

unread,
Jul 4, 2020, 3:21:48 AM7/4/20
to comp.mobile.nokia.8110
Tab is left softkey. There is no zoom feature.
Message has been deleted

Hamid Shahsavani

unread,
Jul 8, 2020, 8:00:40 AM7/8/20
to comp.mobile.nokia.8110
how to use open vpn binnary in terminal app

permision deneid error ...

chmod +x openvpn , not work ...

Farooq Karimi Zadeh

unread,
Jul 8, 2020, 8:13:22 AM7/8/20
to banana...@googlegroups.com

Hello.Where was this "openvpn" binary located?

Hamid Shahsavani

unread,
Jul 8, 2020, 11:00:40 AM7/8/20
to comp.mobile.nokia.8110
In 'openvpn binary' tupic

- sorry nokia 8110 cant support cp , paste

Affe null

unread,
Jul 8, 2020, 1:38:51 PM7/8/20
to comp.mobile.nokia.8110
Use chmod 777

Hamid Shahsavani

unread,
Jul 8, 2020, 4:25:56 PM7/8/20
to comp.mobile.nokia.8110
permision deneid ...

Hamid Shahsavani

unread,
Jul 11, 2020, 11:41:15 AM7/11/20
to comp.mobile.nokia.8110

how to opened web browser by terminal emulator?

Affe null

unread,
Jul 11, 2020, 1:08:22 PM7/11/20
to comp.mobile.nokia.8110
Browser is part of b2g, the terminal app only provides an interface to lower levels (shell, linux, etc.)

Teach down

unread,
Jul 11, 2020, 2:04:47 PM7/11/20
to comp.mobile.nokia.8110
can we pull or push files using terminal app?

Ivan Alex HC

unread,
Jul 11, 2020, 7:36:23 PM7/11/20
to comp.mobile.nokia.8110
to use a linux terminal (because this is a linux terminal) you should know how to use the terminal before.
Here a list of 35 basic commands with examples https://www.hostinger.com/tutorials/linux-commands
have fun!

Nokia Tips

unread,
Aug 17, 2020, 11:11:06 AM8/17/20
to comp.mobile.nokia.8110
I run this command in Linux PC : adb shell b2g-ps

It lists running processes.

I note down the PID of the process that i want to close.

I open terminal emulator app and enter command kill pid

The process now stops.

I again open that process in my phone.

Run same command on pc.

But now that process have different PID.

This happens everytime that process restarts.

Why this happens ?

The process i mentioned here is audio app.
Reply all
Reply to author
Forward
0 new messages