this post was submitted on 28 Dec 2024
336 points (96.4% liked)

unix_surrealism

2219 readers
2 users here now

one should not chase the electric dream

This community is for sharing original content related to computers, content, surrealism and wizardry.

Now that you're a surrealist, become a Techno-Mage:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] qrstuv@lemmy.sdf.org 3 points 2 months ago

Rob carried the standard well for the "spirit of UNIX,"

if (isatty(1)) {

	if (ioctl(1,JMUX,0) >= 0) {
		struct winsize win;
		if (ioctl(1,JWINSIZE,&win) >= 0) {
			screenwidth = win.bytesx;
			if (screenwidth == 0)
				screenwidth++;
		}
	}

	qflg = Cflg = 1;
	(void) gtty(1, &sgbuf);
	if ((sgbuf.sg_flags & XTABS) == 0)
		usetabs = 1;
}