Import Amiga applications and desktop tools

This commit is contained in:
Alberto committed 2026-11-11 16:21:50 +01:00
commit 1c144c9a3c
347 files changed
+423483

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# DCTelnet theme
Script locale per applicare il tema ambra a una installazione DCTelnet. Il programma e i sorgenti upstream non sono inclusi. Lo script originale usa percorsi C:/Amiga.
+22
View File
@@ -0,0 +1,22 @@
from pathlib import Path
import struct,shutil
app=Path('C:/Amiga/HD0/Utilities/DCTelnet')
shutil.copy2(app/'DCTelnet.Prefs','work/telnet-theme/DCTelnet.Prefs.before')
p=app/'DCTelnet.Prefs'
b=bytearray(p.read_bytes())
assert len(b)==376
# Native m68k PrefsStruct: 16 RGB4 colors at 200, then flags and window geometry.
colors=[0x321,0xedb,0xa73,0xdb7,0x865,0xc95,0xdb9,0xa62,
0x653,0xffe,0xc94,0xfd8,0xba8,0xeb7,0xfec,0xe93]
for i,c in enumerate(colors):struct.pack_into('>H',b,200+2*i,c)
flags=struct.unpack_from('>I',b,232)[0]
# Workbench window and monochrome terminal text use the desktop's own pens.
struct.pack_into('>I',b,232,flags|8|64)
struct.pack_into('>4H',b,236,240,240,680,480)
p.write_bytes(b)
dock=Path('C:/Amiga/HD0/Utilities/WBDock2/Amber.config')
shutil.copy2(dock,'work/telnet-theme/Amber.config.before')
s=dock.read_text()
entry='SYS:Utilities/DCTelnet/DCTelnet'
if entry not in s:s=s.replace('HD0:WookieChat_OS3','HD0:WookieChat_OS3\n'+entry)
dock.write_bytes(s.encode('ascii'))