-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
576 lines (535 loc) · 23.8 KB
/
index.php
File metadata and controls
576 lines (535 loc) · 23.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
<?php
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
$oldDevices = ["Nokia", "Series40", "MIDP", "CLDC", "SonyEricsson", "S40", "S60", "Opera Mini", "UCWEB", "MicroMessenger"];
$isOld = false;
foreach ($oldDevices as $keyword) {
if (stripos($ua, $keyword) !== false) {
$isOld = true;
break;
}
}
header('Content-Type: text/html; charset=UTF-8');
if ($isOld) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>OpenTTY</title>
<style>
body, html { background: #000; color: #fff; font-family: monospace; padding: 20px; }
.card, .header, .links, .meta { all: unset; }
a { color: #6cf; text-decoration: none; display: block; margin: 6px 0; }
pre { background: #111; padding: 12px; overflow-x: auto; border-left: 3px solid #0cf; }
hr { border-color: #333; }
</style>
</head>
<body>
<h1>OpenTTY</h1>
<p>Terminal Emulator for J2ME Phones</p><br>
<a href="/assets/">📁 Mirror</a>
<a href="/dist/">⬇️ Downloads</a>
<a href="https://github.com/mrlima4095/OpenTTY-J2ME">📦 Repository</a>
<a href="http://git.opentty.xyz">📝 Gitea</a>
<a href="/cli">🌐 WebProxy</a>
<hr>
<h3>🛠️ Building OpenTTY from Source</h3>
<pre>📥 Step 1: Download SDK.jar from http://opentty.xyz/dl/SDK.jar
📁 Step 2: Navigate to OpenTTY repo folder
🔨 Step 3: Launch SDK.jar, browse repo, press Build button (hammer icon)
📦 Output: dist/OpenTTY.jar + OpenTTY.jad
📲 Install: run OpenTTY.jar or OpenTTY.jad on your J2ME phone</pre>
</body>
</html>
<?php
}
else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>OpenTTY · Modern Terminal for J2ME</title>
<!-- Bootstrap 5 + Icons + Fonts -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background: #0b0e14;
background-image: radial-gradient(circle at 10% 20%, rgba(30, 40, 60, 0.4) 0%, rgba(5, 8, 12, 0.95) 90%);
color: #eef3ff;
scroll-behavior: smooth;
}
:root {
--glow-cyan: #2dd4bf;
--glow-blue: #3b82f6;
--dark-card: #11161f;
--border-dim: #2a3342;
}
.navbar-glass {
backdrop-filter: blur(12px);
background: rgba(10, 14, 23, 0.75);
border-bottom: 1px solid rgba(45, 212, 191, 0.25);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.btn-outline-terminal {
border: 1px solid var(--glow-cyan);
color: var(--glow-cyan);
background: transparent;
transition: all 0.2s ease;
font-weight: 500;
letter-spacing: 0.3px;
}
.btn-outline-terminal:hover {
background: var(--glow-cyan);
color: #0a0f1a;
box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
border-color: var(--glow-cyan);
}
.btn-solid-cyan {
background: linear-gradient(95deg, #2dd4bf, #1e8f8a);
border: none;
color: #0b0f17;
font-weight: 600;
transition: 0.2s;
box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}
.btn-solid-cyan:hover {
transform: translateY(-2px);
background: linear-gradient(95deg, #22c5b0, #1a7d78);
box-shadow: 0 8px 20px rgba(45, 212, 191, 0.5);
color: #000;
}
.hero-section {
padding: 6rem 0 5rem 0;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: "⚡";
font-size: 380px;
opacity: 0.03;
position: absolute;
bottom: -80px;
right: -60px;
pointer-events: none;
font-family: monospace;
}
.code-badge {
background: #0f121b;
border-left: 4px solid var(--glow-cyan);
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
padding: 0.6rem 1rem;
border-radius: 12px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.feature-card {
background: rgba(18, 24, 34, 0.7);
backdrop-filter: blur(4px);
border: 1px solid #2a3442;
border-radius: 28px;
transition: transform 0.2s, border-color 0.2s;
height: 100%;
}
.feature-card:hover {
border-color: #2dd4bf80;
transform: translateY(-5px);
background: rgba(28, 36, 48, 0.85);
}
.btn-outline-dim {
border: 1px solid #3e4a5d;
color: #cbd5f0;
background: transparent;
transition: 0.2s;
}
.btn-outline-dim:hover {
border-color: var(--glow-cyan);
color: var(--glow-cyan);
background: rgba(45, 212, 191, 0.1);
}
.terminal-window {
background: #03060c;
border-radius: 18px;
border: 1px solid #2b3548;
box-shadow: 0 20px 35px -12px black;
font-family: 'JetBrains Mono', monospace;
}
.terminal-header {
background: #121722;
padding: 10px 16px;
border-top-left-radius: 18px;
border-top-right-radius: 18px;
border-bottom: 1px solid #2b3548;
}
.window-dot {
height: 12px;
width: 12px;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
}
.footer-links a {
color: #a3b3d6;
text-decoration: none;
transition: 0.2s;
}
.footer-links a:hover {
color: var(--glow-cyan);
}
pre, .terminal-body {
font-family: 'JetBrains Mono', monospace;
}
.btn-icon-group {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}
.btn {
border-radius: 60px;
padding: 0.6rem 1.4rem;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn i {
font-size: 1.2rem;
}
.build-steps {
background: #0c111c;
border-radius: 28px;
border: 1px solid #2a3442;
}
@media (max-width: 640px) {
.hero-section {
padding: 3.5rem 0 3rem;
}
.btn {
padding: 0.5rem 1rem;
font-size: 0.85rem;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark navbar-glass fixed-top">
<div class="container">
<a class="navbar-brand fw-bold fs-3" href="#">
<span class="text-cyan" style="color:#2dd4bf;">◢</span> OpenTTY
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarMain">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 gap-2">
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#tech">Tech stack</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#build">Build</a></li>
<li class="nav-item"><a class="nav-link" href="#downloads">Get started</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero -->
<section class="hero-section">
<div class="container">
<div class="row align-items-center g-5">
<div class="col-lg-6">
<div class="mb-3">
<span class="badge bg-dark text-cyan border border-cyan px-3 py-2 rounded-pill" style="border-color:#2dd4bf80 !important;">
<i class="bi bi-terminal-fill me-1"></i> J2ME · ARM32 Emulation
</span>
</div>
<h1 class="display-4 fw-bold mb-3" style="letter-spacing: -0.02em;">
Run ELF & Lua<br> inside <span class="text-gradient" style="color:#2dd4bf;">retro terminals</span>
</h1>
<p class="lead text-light-emphasis opacity-75 mb-4">
OpenTTY brings a full Unix-like environment to J2ME feature phones. Execute ARM32 binaries, Lua scripts, manage processes, and experience modern CLI on old devices.
</p>
<div class="btn-icon-group mb-4">
<a class="btn btn-outline-terminal" href="/dist/"><i class="bi bi-download"></i><span>Downloads</span></a>
<a class="btn btn-outline-terminal" href="http://git.opentty.xyz"><i class="bi bi-code-square"></i><span>Gitea</span></a>
<a class="btn btn-outline-terminal" href="https://github.com/mrlima4095/OpenTTY-J2ME"><i class="bi bi-github"></i><span>Repository</span></a>
<a class="btn btn-outline-terminal" href="/cli"><i class="bi bi-globe2"></i><span>WebProxy</span></a>
</div>
<div class="code-badge d-inline-flex mt-2">
<i class="bi bi-cpu me-2 text-cyan"></i>
<span>Lua J2ME · ELF loader · Dynamic linking</span>
</div>
</div>
<div class="col-lg-6">
<div class="terminal-window">
<div class="terminal-header d-flex align-items-center">
<span class="window-dot" style="background:#ff5f56;"></span>
<span class="window-dot" style="background:#ffbd2e;"></span>
<span class="window-dot" style="background:#27c93f;"></span>
<span class="ms-2 small text-secondary">root@opentty:~/home/#</span>
</div>
<div class="terminal-body p-3" style="min-height: 260px; background:#0b0e12;">
<pre style="background: transparent; border: none; color:#bbd4ff; margin:0; font-size:0.8rem;">
<span style="color:#2dd4bf;">$</span> uname -a
Nokia 6233 (OpenTTY 1.18.1) main/mod 2026-1.18.1-03x27 - CLDC-1.1 MIDP-2.0
<span style="color:#2dd4bf;">$</span> ./hello.elf
Hello from ARM ELF on J2ME!
<span style="color:#2dd4bf;">$</span> lua -e 'print(os.date())'
Tue Apr 30 16:20:01 2026
<span style="color:#2dd4bf;">$</span> ps
PID PROCESS
1 init
1420 lua script.lua
<span style="color:#9cdcfe;">status: running</span></pre>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- feature grid -->
<section id="features" class="py-5">
<div class="container py-4">
<div class="text-center mb-5">
<h2 class="fw-bold">Designed for constrained devices,<br> <span style="color:#2dd4bf;">powerful emulation</span></h2>
<p class="mx-auto col-lg-7 text-secondary">OpenTTY provides an unprecedented experience on J2ME phones: ELF loader, dynamic linking, POSIX syscalls, and full Lua environment.</p>
</div>
<div class="row g-4">
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-file-binary fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">ARM32 ELF Loader</h4>
<p class="text-secondary">Full ELF interpreter for ARM executables. Support for PT_LOAD, dynamic sections, GOT/PLT lazy binding, and syscall translation layer.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-lua fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">Lua J2ME</h4>
<p class="text-secondary">Complete Lua interpreter with coroutines, tables, metatables, and custom modules: `os`, `io`, `socket`, `graphics`, `audio`, `push` API.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-hdd-stack fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">Virtual FS & RMS</h4>
<p class="text-secondary">In-memory filesystem, persistent RMS storage, `/bin`, `/etc`, `/home`, and real FileConnection for memory cards. Full Unix-like paths.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-wifi fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">Network Sockets</h4>
<p class="text-secondary">TCP/UDP socket support, HTTP client, socket server API. Connect, bind, send/receive syscalls mapped to J2ME GCF.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-display fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">GUI & Graphics</h4>
<p class="text-secondary">Interactive UI via `graphics` module: Forms, Lists, TextFields, Images, Commands with callback handlers, LCDUI integration.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="feature-card p-4">
<i class="bi bi-shield-lock fs-1 text-cyan" style="color:#2dd4bf;"></i>
<h4 class="mt-3 fw-semibold">Process isolation</h4>
<p class="text-secondary">Multi-process model with UIDs, signalling, priority handling, and kernel IPC via request() mechanism. Sandboxed execution.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Technical deep dive (ELF + dynamic linking) -->
<section id="tech" class="py-5 bg-dark bg-opacity-25">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 mb-4 mb-lg-0">
<h2 class="fw-bold mb-3"><i class="bi bi-layers me-2" style="color:#2dd4bf;"></i> Hybrid execution engine</h2>
<p>The core of OpenTTY includes a lightweight ARM32 interpreter that reads ELF binaries, relocates symbols, resolves dynamic libraries, and traps syscalls. Combined with the Lua runtime, it offers both compiled C applications and scripting.</p>
<ul class="list-unstyled mt-3">
<li class="mb-2"><i class="bi bi-check-lg text-cyan me-2"></i> <strong>Dynamic Linking:</strong> DT_NEEDED, GOT/PLT, lazy resolution, R_ARM_JUMP_SLOT</li>
<li class="mb-2"><i class="bi bi-check-lg text-cyan me-2"></i> <strong>Full ARM Thumb/ARM mode:</strong> Data processing, load/store, branch, SWI syscalls</li>
<li class="mb-2"><i class="bi bi-check-lg text-cyan me-2"></i> <strong>Signal handling & setjmp/longjmp</strong></li>
<li class="mb-2"><i class="bi bi-check-lg text-cyan me-2"></i> <strong>POSIX emulation:</strong> open, read, write, mmap, fork, execve, socket, futex</li>
</ul>
<a href="https://github.com/mrlima4095/OpenTTY-J2ME" class="btn btn-outline-terminal mt-2"><i class="bi bi-github"></i> Explore source code</a>
</div>
<div class="col-lg-6">
<div class="bg-black rounded-4 p-4" style="border: 1px solid #2a3342;">
<h5 class="mb-3"><i class="bi bi-cpu"></i> Dynamic relocation demo</h5>
<pre style="font-size: 0.75rem; background:#0c0f15; padding: 1rem; border-radius: 16px; overflow-x: auto;"><span style="color:#6aa9ff;">// ELF relocation handling (Java)</span>
<span style="color:#2dd4bf;">switch</span>(type) {
<span style="color:#2dd4bf;">case</span> R_ARM_JUMP_SLOT:
setupLazyBinding(gotOffset, symIndex);
<span style="color:#6aa9ff;">break;</span>
<span style="color:#2dd4bf;">case</span> R_ARM_GLOB_DAT:
symAddr = resolveSymbol(symName);
writeIntLE(memory, offset, symAddr);
<span style="color:#6aa9ff;">break;</span>
}
<span style="color:#2dd4bf;">// PLT resolver stub</span>
<span style="color:#d4d4d4;">0xe51ff004 : ldr pc, [pc, #-4]</span></pre>
<div class="small text-secondary mt-2">OpenTTY implements both REL and RELA relocations, dynamic symbol table, and a generic syscall dispatcher with 70+ Linux EABI syscalls.</div>
</div>
</div>
</div>
</div>
</section>
<!-- about + architecture -->
<section id="about" class="py-5">
<div class="container">
<div class="row g-5">
<div class="col-md-6">
<div class="p-4 rounded-4 bg-dark bg-opacity-30 border border-secondary border-opacity-25 h-100">
<i class="bi bi-quote fs-1 text-cyan opacity-50"></i>
<p class="mt-2 fs-5 fst-italic">"OpenTTY brings the Unix philosophy to feature phones. It's more than a terminal — it's a full development and runtime environment for ARM binaries and Lua, all running inside the JVM."</p>
<hr class="my-3 opacity-25">
<div class="d-flex align-items-center gap-3">
<div style="width:48px;height:48px;background:#1e293b; border-radius: 99px; display:flex; align-items:center; justify-content:center;"><i class="bi bi-code-slash fs-4"></i></div>
<div><strong>J2ME ecosystem</strong><br>MIDP 2.0 / CLDC 1.1 compatible</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="p-4 rounded-4 bg-dark bg-opacity-30 border border-secondary border-opacity-25 h-100">
<i class="bi bi-braces fs-1 text-cyan opacity-50"></i>
<h5 class="mt-2">Modular design</h5>
<p>ELF loader – independent bytecode interpreter – posix file abstraction – Lua FFI – graphics toolkit. Everything structured for extensions and lightweight memory usage (dynamic heap, 1MB base memory).</p>
<div class="mt-3 small">
<span class="badge bg-dark me-1">#ARM32</span>
<span class="badge bg-dark me-1">#LuaJIT-like</span>
<span class="badge bg-dark me-1">#RecordStoreFS</span>
<span class="badge bg-dark">#Socket API</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- 🛠️ BUILD SECTION (from source instructions) -->
<section id="build" class="py-5">
<div class="container">
<div class="build-steps p-4 p-md-5">
<div class="text-center mb-4">
<i class="bi bi-hammer fs-1 text-cyan"></i>
<h2 class="fw-bold mt-2">Building OpenTTY from Source Code</h2>
<p class="text-secondary">Compile OpenTTY directly on your mobile device using the official SDK tool</p>
</div>
<div class="row g-4">
<div class="col-md-6">
<div class="bg-black bg-opacity-40 p-3 rounded-3 h-100">
<h5><i class="bi bi-1-square-fill text-cyan"></i> Download SDK</h5>
<p>Get <a href="http://opentty.xyz/dl/SDK.jar" class="text-cyan">SDK.jar</a> and transfer it to your device's storage or SD card.</p>
<h5 class="mt-3"><i class="bi bi-2-square-fill text-cyan"></i> Access Repository</h5>
<p>Open file manager, navigate to the OpenTTY source folder. Ensure all Java files are present.</p>
<h5 class="mt-3"><i class="bi bi-3-square-fill text-cyan"></i> Compile with SDK</h5>
<p>Launch <code>SDK.jar</code>, browse to OpenTTY directory, press the <strong>Build button (🛠️ hammer icon)</strong>. Wait for compilation.</p>
</div>
</div>
<div class="col-md-6">
<div class="bg-black bg-opacity-40 p-3 rounded-3 h-100">
<h5><i class="bi bi-archive"></i> Output Files</h5>
<p>After success, check the <code>dist/</code> folder:</p>
<ul>
<li><strong>OpenTTY.jar</strong> – main executable</li>
<li><strong>OpenTTY.jad</strong> – descriptor file</li>
</ul>
<h5 class="mt-3"><i class="bi bi-phone"></i> Installation</h5>
<p><strong>Method 1:</strong> Open <code>OpenTTY.jar</code> directly → install → launch.</p>
<p><strong>Method 2:</strong> Use <code>OpenTTY.jad</code> for devices that prefer JAD installers.</p>
<div class="alert alert-dark mt-2 mb-0 py-2 small">✅ After install, find "OpenTTY" in your apps → start terminal.</div>
</div>
</div>
</div>
<div class="mt-4 pt-2 border-top border-secondary border-opacity-25">
<div class="row text-secondary small">
<div class="col-md-4"><i class="bi bi-wrench"></i> <strong>Troubleshooting:</strong> verify source files & memory</div>
<div class="col-md-4"><i class="bi bi-exclamation-triangle"></i> JAD vs JAR: try alternate method</div>
<div class="col-md-4"><i class="bi bi-shield-check"></i> MIDP-2.0 / CLDC-1.1 required</div>
</div>
</div>
</div>
</div>
</section>
<!-- download & resources -->
<section id="downloads" class="py-5" style="background: linear-gradient(115deg, #0b1118 0%, #0f1622 100%);">
<div class="container text-center">
<h2 class="fw-bold mb-3">Start building with OpenTTY</h2>
<p class="mb-4 col-lg-7 mx-auto">Get the latest release, browse the repository, or test the web proxy. All resources are open-source and community-driven.</p>
<div class="d-flex flex-wrap justify-content-center gap-3 mb-5">
<a href="/dist/" class="btn btn-solid-cyan px-4 py-2"><i class="bi bi-box-seam"></i> Download stable .jar</a>
<a href="https://github.com/mrlima4095/OpenTTY-J2ME/releases" class="btn btn-outline-terminal"><i class="bi bi-tag"></i> Releases</a>
<a href="/cli" class="btn btn-outline-dim"><i class="bi bi-terminal"></i> Live WebProxy (demo)</a>
</div>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="terminal-window mb-4">
<div class="terminal-header ps-3 py-2"><span class="text-white-50">Quick setup</span></div>
<div class="terminal-body p-3 text-start">
<pre style="margin:0; font-size: 0.8rem;"># compile using mobile SDK.jar
$ java -jar SDK.jar (on phone via J2ME runner)
$ select OpenTTY folder → click Build (🛠️)
# output: dist/OpenTTY.jar + OpenTTY.jad
# install on any MIDP 2.0 device</pre>
</div>
</div>
<div class="mt-3">
<a href="http://git.opentty.xyz" class="text-decoration-none me-3"><i class="bi bi-git"></i> Git repository (Gitea)</a>
<a href="/assets/" class="text-decoration-none"><i class="bi bi-archive"></i> Assets & mirrors</a>
<a href="http://opentty.xyz/dl/SDK.jar" class="text-decoration-none ms-3"><i class="bi bi-tools"></i> Download SDK.jar</a>
</div>
</div>
</div>
</div>
</section>
<!-- footer -->
<footer class="pt-5 pb-4 border-top border-secondary border-opacity-25">
<div class="container">
<div class="row gy-4">
<div class="col-md-5">
<a class="navbar-brand fw-bold fs-3" href="#"><span style="color:#2dd4bf;">❯❯</span> OpenTTY</a>
<p class="small text-secondary mt-2">Modern UNIX-like environment for J2ME phones. ARM ELF loader, Lua scripting, process isolation, networking, and GUI.</p>
<div class="d-flex gap-3 footer-links">
<a href="https://github.com/mrlima4095/OpenTTY-J2ME"><i class="bi bi-github"></i> GitHub</a>
<a href="http://git.opentty.xyz"><i class="bi bi-gitlab"></i> Gitea</a>
<a href="/cli"><i class="bi bi-globe"></i> Proxy</a>
</div>
</div>
<div class="col-md-3 offset-md-1">
<h6 class="fw-semibold">Resources</h6>
<ul class="list-unstyled footer-links small">
<li class="mb-1"><a href="/assets/">🔁 Mirror repository</a></li>
<li class="mb-1"><a href="/dist/">⬇️ Downloads / JAR</a></li>
<li class="mb-1"><a href="https://github.com/mrlima4095/OpenTTY-J2ME/issues">Report issues</a></li>
<li><a href="/docs">Documentation (wiki)</a></li>
</ul>
</div>
<div class="col-md-3">
<h6 class="fw-semibold">Community</h6>
<ul class="list-unstyled footer-links small">
<li class="mb-1"><i class="bi bi-discord me-1"></i> Discord / IRC</li>
<li class="mb-1"><i class="bi bi-envelope"></i> open@syst3m.xyz</li>
<li><span class="text-muted">Build: 2026-1.18.1-03x27</span></li>
</ul>
</div>
</div>
<div class="text-center text-secondary small pt-4 mt-3 border-top border-secondary border-opacity-25">
© 2026 OpenTTY contributors — made for J2ME, inspired by Unix & retro computing.
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<?php
}
?>