mirror of
https://github.com/alfishe/amiga-bootcamp.git
synced 2026-06-13 00:26:28 +00:00
Comprehensive technical documentation covering: - Hardware: OCS/ECS/AGA custom chip registers, Copper & Blitter deep dives - Boot sequence: cold boot through startup-sequence - Binary format: HUNK executable spec, relocation, debug info - Linking & ABI: .fd files, LVO tables, register calling conventions - Exec kernel: tasks, interrupts, memory, signals, semaphores - AmigaDOS: file I/O, FFS/OFS layout, CLI/Shell scripting - Graphics: planar bitmaps, Copper programming, HAM/EHB modes - Intuition: screens, windows, IDCMP, BOOPSI - Devices: trackdisk, SCSI, serial, timer, audio, keyboard - Libraries: utility, expansion, IFFParse, locale, ARexx - Networking: bsdsocket API, SANA-II, TCP/IP stack comparison - Toolchain: GCC, vasm/vlink, SAS/C, NDK, debugging - Reverse engineering: IDA/Ghidra setup, compiler fingerprints, case studies - CPU & MMU: 68040/060 emulation libs, PMMU, cache management - Driver development: SANA-II, Picasso96/RTG, AHI audio All files include breadcrumb navigation. No local paths or proprietary content.
1.2 KiB
1.2 KiB
console.device — Text Terminal I/O
Overview
console.device provides ANSI-compatible text rendering into Intuition windows. It translates raw keycodes to ASCII and supports a rich set of escape sequences for cursor positioning, colour, and text formatting.
Opening
struct IOStdReq *con = CreateStdIO(port);
con->io_Data = (APTR)win; /* the Intuition Window */
con->io_Length = sizeof(struct Window);
OpenDevice("console.device", 0, (struct IORequest *)con, 0);
Common Escape Sequences
| Sequence | Description |
|---|---|
\033[H |
Home cursor |
\033[nA |
Cursor up n lines |
\033[nB |
Cursor down n lines |
\033[nC |
Cursor right n columns |
\033[nD |
Cursor left n columns |
\033[y;xH |
Move to row y, column x |
\033[J |
Clear to end of screen |
\033[K |
Clear to end of line |
\033[nm |
Set graphics rendition (colour/style) |
\033[0m |
Reset attributes |
\033[1m |
Bold |
\033[3m |
Italic |
\033[4m |
Underline |
\033[30–37m |
Foreground colour |
\033[40–47m |
Background colour |
References
- NDK39:
devices/conunit.h - ADCD 2.1: console.device autodocs