Tokens
Eight colours in the Videotex attribute order. On a monochrome Minitel they become grey levels: the whole kit re-skins itself. Try it on this page.
- black
ESC 4/0 5/00 % - blue
ESC 4/4 5/440 % - red
ESC 4/1 5/150 % - magenta
ESC 4/5 5/560 % - green
ESC 4/2 5/270 % - cyan
ESC 4/6 5/680 % - yellow
ESC 4/3 5/390 % - white
ESC 4/7 5/7100 %
Everything snaps to the character cell: --mt-col × --mt-row, one 8×10 glyph. Mosaic strokes are a half cell wide and a third of a row tall.
Type
One pixel font, four Videotex sizes. Pure CSS: font-stretch picks the double-width and double-height faces.
!"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
`abcdefghijklmnopqrstuvwxyz{|}~
àâäçéèêëîïôöùûüÿœ ÀÂÇÉÈÊËÎÔÙÛ «»°£§±÷×€
←↑→↓ ▶◀▲▼ •·… ♥ ✓ ■ █▌▐▀▄ ░▒▓
🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓▌🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝
🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧▐🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻█
🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓▌🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝
The 64 mosaic characters are Unicode's Symbols for Legacy Computing sextants, so mosaic art stays real, selectable text. The second set uses the separated shape.
Components
A 40×25 page grid you place things on like a Videotex server would, and components for regular fluid pages. This screen is plain HTML and CSS — select the text.
- .mt-screen 40×25 grid,
--r/--cplacement - .mt-status row 0 and the C/F indicator
- .mt-header · .mt-band service headers and colour bands
- .mt-menu · .mt-nav numbered choices
- .mt-field · .mt-input dotted Minitel fields
- .mt-key · .mt-button key caps in inverse video
- .mt-panel · .mt-frame pavés, mosaic shadows and frames
- .mt-table · .mt-leaders timetables and dotted leaders
- .mt-progress · .mt-chart half-cell and third-row steps
- .mt-blink · .mt-ticker · .mt-cursor 1985 motion design
- .mt-crt pixel-aligned scanlines, glow, power animation
- <mt-bigtext> <mt-mosaic> <mt-typewriter>
Terminal
A Videotex decoder that follows the STUM1B: serial attributes, G0/G1/G2 sets, repetition, row 0, CSI and PRO sequences. It draws at the Minitel's native 320×250 and a WebGL shader does the tube.
// A page, built with the writer
import { Page }
from './src/js/index.js';
const page = new Page()
.clear()
.header({ title: 'Météo',
code: 'METEO' })
.menu(["Aujourd'hui", 'Demain',
'Carte de France'])
.bigText(16, 24, '19°',
{ color: 'green' })
.prompt();
page.bytes(); // for a real Minitel
terminal.write(page); // 1200 bd
Services
Write a Télétel service as an async function. The session echoes what users type, handles fields and function keys, and the same code can drive a real Minitel over Web Serial.
export default {
code: 'HELLO',
async run(session) {
session.write(new Page().clear()
.header({ title: 'Bonjour' })
.print(10, 3, 'Nom :'));
const { key, value } =
await session.input({
row: 10, col: 9, length: 20,
});
if (key === 'ENVOI') {
session.write(new Page()
.print(14, 3, `Salut ${value}`,
{ size: 'double' }));
}
},
};
Demos
Get started
No build step. One stylesheet, one optional module.
<!-- CSS: tokens, components, fonts -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/bob6664569/minitel@master/src/css/minitel.css">
<!-- Custom elements: terminal, device, keyboard, mosaics -->
<script type="module" src="https://cdn.jsdelivr.net/gh/bob6664569/minitel@master/src/js/elements/index.js"></script>
<body class="mt" data-mt-theme="color">
<header class="mt-header">
<span class="mt-header__code">3615 HELLO</span>
<h1 class="mt-header__title">Bonjour</h1>
</header>
<mt-minitel></mt-minitel>
</body>