Jittey
A public domain text editor written in C and Win32
Install / Use
/learn @jacobsebek/JitteyREADME
Jittey
Jittey (Jacob's Terrific Text Editor) is a single-file basic text editor written in pure C and Win32, there is no real reason to use it, but it can serve as a good reference. It is my first Win32 project and it took me 3 weeks (~100 hours) to finish (although there are still many TODO's.) Because I didn't find almost anything like this and had to dig through the documentation myself, I decided to put it onto the internet for other people starting out with Win32. The whole repository is in the public domain, so you can do anything with it. Bugfixes and improvements are highly encouraged.

Compiling
Compiling the source code is extremely easy on both MSVC and MinGW64, first compile the resource script and then the executable:
MSVC (Command line)
For MSVC, we can use it's resource compiler rc and the command line C/C++ compiler cl, where we just specify the source files and link the necessary libraries which come with the Windows SDK, their path may differ, this is it for me:
rc /r /fo outres.res rds.rc
cl main.c outres.res /Fe:jittey.exe /link /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x86\" User32.Lib Gdi32.Lib Comdlg32.Lib Comctl32.Lib Advapi32.Lib Shell32.Lib
MinGW64, TDM-GCC
The process is farily similar on MinGW, the library path is set automatically, as MinGW comes with its own Windows SDK. To my surprise, it also comes with a tool called windres, which is basically the equivalent of rc. Note that gcc supports only .coff files, so we cannot feed it .res files.
windres -i rds.rc -o outres.coff
gcc main.c outres.coff -lUser32 -lComdlg32 -lgdi32 -lMsimg32 -lComctl32 -o jittey.exe -mwindows
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
