logoalt Hacker News

MonkeyClub • yesterday at 2:19 PM • 3 replies • view on HN

OpenBSD also has an Emacs-y non-extensible editor, mg(1):

https://man.openbsd.org/mg

Just noting for completeness, as I didn’t catch any mention of it.


Replies

torstenvl • yesterday at 2:51 PM

I've used mg and find it generally useful. It's my default editor pretty much everywhere.

However, the code is a mess, with deliberately cryptic identifiers (e.g., `w_doto` for `cursorOffset`), redundant functions (e.g., `vtputc()` is a strict subset of the behavior of `vtpute()`) and a bunch of other weird choices (e.g., deeply-baked assumptions that one byte == one char == one column, even thought Big5 and ShiftJIS were already a thing when it was written).

I tried adding UTF-8 support to mg a couple years ago and basically gave up.

I'll probably be an atto convert.

➕ show 1 reply
SoftTalker • yesterday at 2:50 PM

Also available for most linux distros as a package.

rfmoz • yesterday at 7:57 PM

mg is nice, but I miss the colored text