Menu

Reddit - Please wait for verification
📰
0

Reddit - Please wait for verification

The Swift Programming Language·/u/vbaranov·2 days ago
#t9ByXPmk
Reading 0:00
15s threshold

Hey everyone. Sharing a Swift side project that's been a real workout on the AppKit side, in case any of the implementation choices are interesting. STAX IDE is a macOS app where every terminal, code editor, and file browser is a movable, resizable window on a single zoomable canvas. I wrote it native because I run it all day and Electron terminals always felt slightly off. Stack Pure AppKit. No SwiftUI in the shipping product. I tried, but the per-frame layout I needed during drag/zoom (manually driving frames to avoid AppKit's display-cycle re-entrancy guard) was easier in straight NSView land. SwiftTerm for the VT100 emulator + real PTY (fork + openpty). One LocalProcessTerminalView per tab. ANSI palette, OSC 7 cwd, OSC 0/2 title. NSScrollView.magnification for canvas zoom. NSPasteboard for drag-and-drop. Both Finder→canvas and file-dock→terminal carry real absolute paths. Plain Codable JSON in ~/.termgrid/ for layout + notes persistence. One SwiftPM target.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More