[ Config ]
name=Manual
version=1.0
description=Manual Pages
[ HTML ]
Usage: about [FILE]
* Print information about FILE if it is a Package.
Usage: add [TEXT]
* Add TEXT in nano buffer, without TEXT add a line break.
Usage: alias [NAME]=[COMMAND]
* Create or view aliases.
Without arguments, 'alias' prints the list of aliases;
Otherwise, an alias is defined for each NAME whose COMMAND is given;
When only NAME is found and it is an alias prints it value.
Usage: basename [PATH]
* Print the final component of PATH, removing all leading directories.
Usage: bg [COMMAND]
* Run COMMAND in Background.
Usage: bind [PORT]
* Remote Shell server.
Listen at PORT for connections, without PORT take from environment key.
Connect it, the received payloads is executed and the output is sent as response.
Usage: bruteforce [COMMAND]
* Run COMMAND while process 'bruteforce' is alive.
When the 'bruteforce' process ends, all of its instances stop.
Use command 'kill [PID]' or 'stop bruteforce' to kill it.
Usage: buff [TEXT]
* Set content of standard input (stdin) as TEXT.
Usage: builtin [COMMAND]
* Run COMMAND bypassing aliases.
Usage: call [PHONE]
* Request Device API make a call to PHONE number.
Usage: case [CONTEXT] ([NAME]) [COMMAND]
* Look for NAME in CONTEXT. If found, run COMMAND.
Supported CONTEXTs:
alias key file root
screen display thread
trace user
Use '!' before EXPRESSION to negate the result.
NAME must be enclosed in parentheses.
Usage: cat [FILE]
* Print content of FILE.
Usage: catch [COMMAND]
* Run command, but always return a successfully status.
Usage: cd [PATH]
* Change current directory to PATH.
Without PATH return to path '/home/'.
See also page 'lsblk' to read about mount points.
Usage: chmod [NODE]
* Request Device API looking for Permission NODE.
Permission NODEs:
http socket file prg
Log NODE status into MIDlet Logs.
Usage: clear [PAGE]
* Clear PAGE content.
MIDlet PAGEs:
stdin stdout history logs
Without PAGE, clear console (stdout).
Usage: clone [URL]
* Make a HTTP GET request in URL and run response as script.
This command uses MIDlet-Proxy by default. Some J2ME Devices don't have support for certificates and without this cannot connect directly in a HTTPS server.
Usage: conf [FILE]
* Prints FILE in INI format;
Parsing only works if source FILE is in JSON format.
Usage: command [COMMAND]
* Run COMMAND bypassing aliases.
Usage: cp [SOURCE] [COPY]
* Make a copy of SOURCE.
Copy SOURCE into COPY;
Without COPY the new FILE name is 'SOURCE-copy'.
Usage: cron [TIME] [COMMAND]
* Wait TIME before run COMMAND.
Usage: curl [URL]
* Make a HTTP GET request in URL and print response.
Usage: date
* Print Device date and time.
Usage: debug
* Run MIDlet debug script.
Usage: diff [file] [file]
* Print differences between FILEs.
Usage: dir [OPTIONS]
* Print FILES of current directory.
OPTIONS:
-a
| Include hidden files in listing.
-v
| Prints listing when you're in home.
If you're in home directory it open File Explorer.
Usage: du [FILE]
* Print length (in Bytes) of FILE.
Usage: echo [TEXT]
* Print TEXT, without TEXT print a line break.
Usage: env [KEY]
* Print VALUE of KEY, without KEY list all environment keys.
Usage: eval [COMMAND]
* Run COMMAND and prints it exit code.
CODES:
0
| OK, successfully;
1
| Generic error;
2
| Missed or invalid arguments;
3
| Unsupported API;
5
| Read-only storage;
13
| Permission denied;
68
| Service running;
69
| Service unavailable;
100
| Data parsing error;
101
| Network error;
127
| Not found.
255
| Caused by false.
Usage: exec [COMMAND &]
* Run more then one command in a process.
Split COMMAND's by char '&'.
Usage: execute [COMMAND ;]
* Run more then one command in a process.
Split COMMAND's by char ';'.
Usage: exit
* Close MIDlet.
Usage: expr [EXPRESSION]
* Perform a math EXPRESSION and print it result.
Usage: export [KEY]
* Clear VALUE of KEY, without KEY list all environment keys.
Usage: false [TEXT]
* Do anything, return false.
Usage: find [FILE] [PATTERN]
* Search PATTERN in FILE, print VALUE in standard output (stdout).
If PATTERN not found in FILE, it will print 'null'.
The search only work if source FILE is in INI format.
Usage: for [KEY] ([FILE]) [COMMAND]
* Read the FILE and execute the COMMAND for each line with the KEY VALUE being the current line.
Usage: fw [ADDRESS]
* Look for information about an IP ADDRESS.
This command uses API at 'http://ipinfo.io'.
Usage: gaddr [DOMAIN] [DNS]
* Resolve IP Address of DOMAIN.
Without DNS, 'gaddr' uses by default Cloudflare DNS (1.1.1.1:53).
Usage: gauge [TEXT]
* Display an Alert with TEXT with a loading progress bar.
Usage: gc
* Trigger Garbage Collector.
Usage: genip
* Generate a random IP Address.
Usage: get [FILE]
* Replace nano buffer by content of FILE.
Usage: getopt [TEXT]
* Print argument part of TEXT.
Usage: getty
* Replace nano buffer by content of standard output (stdout).
Usage: gobuster [URL] [WORDLIST]
* Run GoBuster in URL.
GoBuster search for valid files and directories at a WebServer.
Without WORDLIST file, it uses file '/home/gobuster'. The default WORDLIST can be downloaded with Yang.
Usage: grep [FILE] [PATTERN]
* Look for PATTERN in FILE, print 'true' or 'false'.
Usage: hash [FILE]
* Print hash of FILE.
Usage: head [FILE]
* Print first 10 lines of FILE.
Usage: help
* Display MIDlet default help.
Usage: history
* Display commands history of current session.
Usage: hostname
* Print MIDlet host name.
Usage: hostid
* Print MIDlet host id.
Usage: htop
* Display Memory Usage Panel.
Button 'Refresh' triggers Garbage Collector.
Usage: http [URL]
* Make a HTTP request with customized Headers.
Display a Editor to change Headers.
It given options to run 'curl' and 'wget' with the customized Headers.
In newer releases, this command have been disbled. To make an request with custom headers usage (ex. `curl [DOMAIN] [HEADER FILE]', it works with 'curl', 'wget', 'proxy' and 'clone' commands).
Usage: html
* View content in nano buffer as HTML.
Usage: if ([EXPRESSION]) [COMMAND]
* Perform EXPRESSION to run COMMAND.
Supported operators:
== != > < >= <=
startswith endswith contains
Use '!' before EXPRESSION to negate the result.
The expression must be enclosed in parentheses.
Usage: ifconfig
* Print Device IP Address.
Usage: import [FILE]
* Load an OpenTTY Package from FILE.
Packages bring modifications to your OpenTTY, you can use it to improve your experience.
Default Packages:
yang netkit settings
These are at directory '/java/lib' and you can import.
See also their pages.
Usage: install [FILE]
* Save nano buffer into FILE.
Usage: java [OPTIONS...] [FILE]
* Virtual Java Runtime.
OPTIONS:
--version
| Print Java version.
-class [CLASS]
| Look for CLASS, print 'true' or 'false'.
With FILE, run it as a Java Class.
Usage: kill [PID]
* Kill process of PID.
Usage: lua [FILE]
* Run a Lua source code.
Usage: locale
* Print MIDlet language settings.
Usage: login
* This command is disabled until 1.8.4 release. Now you requires to login with a username in MIDlet loading.
Usage: log [OPTIONS ...]
* Manage MIDlet logs.
OPTIONS:
view
| Display logs.
clear
| Clear logs.
swap [FILE]
| Save logs in FILE.
add [TYPE] [TEXT]
| Add a new log with TEXT in context of TYPE.
LOG Types:
info debug warn error
Usage: logcat
* Print logs.
Usage: logname
* Print session user name.
Usage: logout
* End user session and close MIDlet.
If you are logged as superuser 'root', it returns to your user.
Usage: ls
* Display File Explorer.
Usage: lsblk [OPTIONS]
* View information about Device Storage.
OPTIONS:
-x
| Print in digested format.
MIDlet Mount points:
/
| Name: Assets
| Type: read
/mnt/
| Name: Device
| Type: read,write
/home/
| Name: RMS
| Type: read,write
Usage: man [OPTIONS...] [PAGE]
* Display manual PAGE.
All MIDlet Commands have a manual page.
OPTIONS:
-v
| Print manual PAGE.
--update
| Download an newer version of manual.
Usage: mkdir [NAME]
* Create a new directory with NAME.
Only can create directories in Device Storage.
Usage: mmspt [PRIORITY]
* Current Thread Manager.
When no arguments are given, show Thread name.
If argument is word 'priority' prints this value of current Thread.
If argument is a number between 0-10 set it as priority of current Thread.
Usage: mount [FILE]
* Mount a Storage from FILE.
Usage: nano [FILE]
* Display Nano Editor
Without FILE continue editing last buffer.
Otherwise if FILE is given buffer is replaced by the FILE content.
Usage: nc [HOST:PORT]
* Connect to HOST at PORT.
Usage: netstat
* Look for network connection, print 'true' or 'false'.
Usage: open [API]
* Request Device API.
Supported APIs:
http https mailto
tel sms mms
Usage: passwd [PASSWORD]
* Change user password.
This command requires super user privileges, try run 'sudo passwd [PASSWORD]'.
Usage: ping [DOMAIN]
* Meter time to connect into DOMAIN.
Usage: pkg [SPEC]
* Look for a MIDlet or System Property and print it VALUE.
Use '/' before SPEC to recover a System Property.
Otherwise, recover SPEC from MIDlet Properties.
Usage: pinc
* Parse content of nano buffer to INI format.
The parsing only work if content at buffer is in JSON format.
Usage: ph2s
* Save session commands history in nano buffer.
Usage: pjnc
* Parse content of nano buffer to JSON format.
The parsing only work if content at buffer is in INI format.
Usage: pong [HOST:PORT]
* Meter time to connect into HOST at PORT.
Usage: prg [TIME] [MIDlet]
* Create an Alarm to MIDlet.
The MIDlet need to be in attached into Jar/ JAD Package.
Available only if Device supports JSR-118.
Usage: prscan [ADDRESS] [INIT]
* Look for open ports at ADDRESS.
Without INIT the scanning starts in PORT 0.
Usage: proxy [URL]
* Make a HTTP GET request in URL and print response.
This command uses MIDlet-Proxy by default. Some J2ME Devices don't have support for certificates and without this cannot connect directly in a HTTPS server.
Usage: ps
* Display running process.
Usage: pushd [PATH]
* Add current PATH to stack and change current directory to PATH.
Without PATH 'pushd' prints directories stack.
See also page 'lsblk' to read about mount points.
Usage: pwd
* Print current directory.
Usage: query [PROTOCOL://ADDRESS]
* Connect to ADDRESS using PROTOCOL.
Supported PROTOCOLs:
socket datagram http file
Usage: raw
* Print nano buffer content.
Usage: read [KEY] [FILE]
* Set VALUE of environment KEY as FILE content.
Usage: report
* Open your mail client to send a message to MIDlet developer.
Usage: return [CODE]
* Return CODE.
See also page 'eval' to read about return/ exit codes.
Usage: rm [FILE]
* Delete FILE.
Usage: rraw
* Clear standard output (stdout) and print nano buffer content.
Usage: run [FILE]
* Run FILE as a shell script.
Usage: sed [OPTIONS ...]
* String Editor.
Use it to modify content at nano buffer.
OPTIONS:
-2u
| Parse all buffer to upper case.
-2l
| Parse all buffer to lower case.
-a [TEXT]
| Add a new line in end of buffer.
-d [PATTERN]
| Remove all cases of PATTERN from buffer.
-r [PATTERN] [NEW]
| Replace all cases of PATTERN by NEW in buffer.
-s [PATTERN] [INDEX]
| Split buffer by PATTERN and print part INDEX
-l [INDEX]
| Print line INDEX.
-p [PATTERN]
| Add PATTERN in front of all lines.
-v
| View nano buffer content inverted.
Usage: server
* Basic socket server.
Listen at $PORT for connections. 'server' doesn't read PORT from standard input (stdin), but take it from environment key.
The response FILE is take from environment key 'RESPONSE'.
Usage: set [KEY]=[VALUE]
* Set VALUE of environment KEY.
OpenTTY $VERSION - $PATCH
Copyright (C) 2025 - Mr. Lima
OpenTTY is an Unix-Based Terminal Emulator for J2ME Devices. This MIDlet includes more then 100 commands and supports Packages to bring third-party modifications to improve your experience.
Usage: sleep [TIME]
* Hold current Thread by TIME.
Usage: start [PROCESS]
* Start a virtual PROCESS.
It don't call any program, but generate a process that can be used to track an API or Package.
Usage: stop [PROCESS]
* Stop a virtual PROCESS.
Usage: stty [VALUE]
* Change max tty size as VALUE.
To remove max limit set VALUE as -1.
Usage: su
* Switch user (root/ you).
Granted privileges can be accessed by all interfaces. Be careful!
Usage: sudo [COMMAND]
* Run COMMAND with super user privileges.
'sudo' will ask your password in a Quest Window, it block calls from remote interfaces.
Usage: tail [FILE]
* Print last 10 lines of FILE.
Usage: tick [TEXT]
* Display TEXT in top of current screen.
When argument TEXT is word 'label', it prints the VALUE of a existent tick at current screen.
Usage: title [TEXT]
* Set Main title as TEXT, without TEXT set the default title.
Usage: top [OPTIONS]
* Print information about memory usage.
OPTIONS:
free used total
Usage: touch [FILE]
* Clear content of FILE.
Without FILE, clear nano buffer.
If FILE not found, 'touch' creates it.
Usage: trace [OPTIONS ...]
* Look for state of a PROCESS or PID.
OPTIONS:
pid [PID]
| Print associated PROCESS name of PID.
check [PROCESS]
| Print 'true' or 'false' for PROCESS status (is alive).
Usage: true [TEXT]
* Do anything, return true.
Usage: tty
* Print TTY FILE.
Usage: ttysize
* Print length of TTY (in Bytes).
Usage: uname [OPTIONS]
* Print information about Device.
Without OPTIONS, print Device Identifier.
OPTIONS:
-a --all
| All information.
-r --release
| MIDlet release.
-v --build
| MIDlet build code.
-m
| Machine JVM Profile.
-p
| JVM Configuration.
-n
| Node name.
Usage: unalias [NAME]
* Remove alias with NAME.
Usage: unset [KEY]
* Remove environment KEY.
Usage: uuid
* Generate random UUID 4.
Usage: vendor
* Print MIDlet vendor.
Usage: view [TEXT]
* View TEXT in HTML Viewer.
Usage: vnt [SOURCE] [FILE]
* Parse SOURCE content text to VNT format.
When destination FILE is missing, the parsed content is saved at nano buffer.
Usage: warn [TEXT]
* Display an Alert with TEXT.
Usage: wc [OPTIONS ...] [FILE]
* Print metrics for FILE.
OPTIONS:
-c
| Only bytes
-w
| Only words
-l
| Only lines
Usage: wget [URL]
* Make a HTTP GET request in URL and save response in nano buffer.
Usage: which [COMMAND]
* Print COMMAND source.
MIDlet builtins and not found don't show anything.
shell alias function
Usage: who
* Print all IP Addresses of connected interfaces.
Usage: whoami
* Print session user name.
Usage: wrl [OPTIONS ...]
* WMA Client
Wireless Messasing API Client for OpenTTY J2ME. This tool is at developmenting.
OPTIONS:
id
| Wireless ID
Usage: x11 [OPTIONS ...]
* Graphical Server Client.
OPTIONS:
term
| Display MIDlet Terminal.
init
| Start X11 Graphical Server.
stop
| Unload Terminal and stop X11.
xfinit [INTERFACE]
| Force an interface loading.
title [TEXT]
| Change current screen title.
font [STYLE]
| Change standard output (stdout) font.
tick [TEXT]
| Set screen tick as TEXT.
set [NAME]
| Save current screen with NAME.
load [NAME]
| Load saved screen with NAME.
make [FILE]
| Display a basic screen from FILE.
list [FILE]
| Display a list from FILE.
item [FILE]
| Load item from FILE.
quest [FILE]
| Display a quest from FILE.
canvas [FILE]
| Display canvas from FILE.
Usage: xterm
* Display MIDlet Terminal.
To replace the default MIDlet screen, set an alias overwriting this command.
Usage: yang [OPTIONS]
* Default Package Manager.
When run command 'yang' it displays the repository with available packages to install.
OPTIONS:
info
| Print version of running PackJ.
update
| Download latest version of PackJ.
query
| Open a Quest for Package FILE name to install.
setrepo
| Open a Quest for IP Address of OpenTTY Server.
To load PackJ import one those files:
- '/java/lib/yang' to the default version for this release.
- '/home/yang' if you have downloaded an update of this.
- '/home/yang-proxy' to use the PackJ Proxy, this don't use OpenTTY Server but MIDlet-Proxy to direct connect with GitHub.
Usage: nk
* Basic Network Toolkit.
To load NetKit use command 'import /java/lib/netkit'.
Usage: cfg
* Default Settings Manager
To load Settings use command 'import /java/lib/settings'.