No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
vs6craft 040a9fa436 Move README and docs to the repository root
The repo showed everything under app/. README.md and docs/ (with
docs/screenshots/editor.png referenced by the README) now live at the
repo root so git hosts render them on the front page. Added a root
.gitignore that keeps Craft Anything workspace files (tools/,
reference/, capture/, checks/, investigation.cany/, craft.json etc.)
out of the repo; app/.gitignore still covers build artifacts.
2026-11-23 20:11:31 +01:00
app Move README and docs to the repository root 2026-11-23 20:11:31 +01:00
docs/screenshots Move README and docs to the repository root 2026-11-23 20:11:31 +01:00
.gitignore Move README and docs to the repository root 2026-11-23 20:11:31 +01:00
README.md Move README and docs to the repository root 2026-11-23 20:11:31 +01:00

vs6craft — a small C IDE for Windows, with Vim-style keys

A lightweight, old-school IDE themed after Borland Turbo C: blue desktop and chrome, yellow editor text, cyan line numbers, white keywords, gray comments. Menu strip and tool buttons on top, a file tree on the left, a big editing window with line numbers, an Output window for builds and program output, and a status strip.

vs6craft editing a C file

License: MIT (see LICENSE). Fonts: JetBrains Mono (OFL), VS Code codicons (MIT).

Features

  • Vim-style editing: motions (h j k l w b e 0 ^ $ gg G 5G), operators (dd dw yy p x u Ctrl+R), insert with i a o O, search /text with n N, command line :w :e :make :q :30
  • File tree (FileView) with expand/collapse folders (open/closed icons), new file / new folder / rename, file sizes; File > Open Folder... roots the tree anywhere
  • Native Open / Save As dialogs plus the command-line prompts
  • Build with gcc (:make or the Build button); compiler output lands in the Output window, errors in red, log auto-scrolls
  • Run: the toolbar Run button captures the program's output into the Output window; Run (new console) opens the program in its own console window that waits for a key
  • Outline panel: #defines and functions of the open file, click to jump; current one highlighted
  • Built-in PowerShell panel (Tools menu), About dialog with the project ASCII logo, Keyboard Shortcuts dialog
  • Click-to-focus: clicking the tree or Output releases the document; the wheel scrolls only the panel under the pointer
  • One color family: every panel is a tint or shade of the Turbo C blue

Run it

powershell -ExecutionPolicy Bypass -File build.ps1           # dev build
powershell -ExecutionPolicy Bypass -File build.ps1 -Release  # optimized

The exe lands in target\debug\ (or target\release\). Start it with no arguments, or pass a file:

vs6craft.exe main.c

Windows installer (Inno Setup)

powershell -ExecutionPolicy Bypass -File build.ps1 -Release
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer.iss

produces installer\vs6craft-setup.exe (about 6 MB): installs the exe under Program Files, offers a desktop shortcut, shows the MIT license, and creates an empty projects\ folder for your code.

The build script also copies three DLLs (opengl32.dll, libgallium_wgl.dll, dxil.dll — Mesa's software OpenGL) next to the exe. Windows loads those before the system ones, which is what lets the window draw on machines with no GPU drivers (VMs, remote desktop). On a normal PC you can ignore them.

Publishing a release to git.cyfrowynomada.com

powershell -ExecutionPolicy Bypass -File release.ps1 -Token <gitea-token>

One-time: on the server, Settings -> Applications -> Generate New Token with the write:repository scope. The script creates (or reuses) the release for the version in the script, builds the installer if needed, and attaches vs6craft-setup.exe.

Screenshots

More pictures live in docs/screenshots/. New ones are easy to make — the app has a picture mode for automation:

vs6craft.exe file.c --screenshot out.png

It opens the window without taking focus, draws about 120 frames, saves the window picture as a PNG, and exits.

Keyboard

h j k l / arrows   move           w b e   word moves
0 ^ $              line ends      gg G    top / bottom    12G  line 12
i a o O            start typing   Esc     back to normal mode
x r s S            edit in place  dd yy p P   line cut / copy / paste
dw db de dl dh     cut            cw cb cl ch   change     yl yh   copy
/text Enter n N    find           u Ctrl+R   undo / redo
Backspace Delete   delete         :w :wq :q!  save / save+quit / quit
:e file.c          open a file    :30        go to line 30
:make              build with gcc
Ctrl+S save   Ctrl+O open   Ctrl+N new   Ctrl+Q quit

Mouse: click places the caret, the wheel scrolls the panel under the pointer. Help > Keyboard Shortcuts shows the same list in a dialog.

Building C files

The Build button (or :make) saves the file and runs gcc -Wall -o file.exe file.c. gcc is looked up on PATH first, then in a tools\w64devkit\bin folder next to the project. Compiler messages land in the Output window.

How this machine builds it (setup notes)

This box had no Rust, no MSVC, and no GPU. If you reproduce the setup:

  1. Rust: install with rustup, then switch to the GNU toolchain (rustup default stable-x86_64-pc-windows-gnu) because there is no MSVC link.exe here.
  2. The GNU toolchain needs dlltool.exe and as.exe on PATH; copies of both (from w64devkit) were placed into %USERPROFILE%\.cargo\bin.
  3. parking_lot is pinned to 0.12.4 in Cargo.lock — the newest one needs a linker feature this setup lacks.
  4. egui/eframe are pinned to 0.31: newer releases need a newer language edition than this crate uses, and their newest lock helper cannot link here.
  5. Window drawing works on this GPU-less machine because Mesa's software OpenGL sits next to the exe (see build.ps1); the app defaults to the llvmpipe driver, so no Vulkan is needed.