logoalt Hacker News

sam_lowry_06/04/20254 repliesview on HN

I wonder how the screenshots were taken. The installer run in a VM?


Replies

JdeBP06/04/2025

That would be one way to do it, certainly. It's boring, though. (-:

There is another. In NetBSD one can, at least according to the manual, open the wsdisplay of the relevant terminal and read out the display contents, with the WSDISPLAYIO_GETWSCHAR I/O control. sysinst is just a full-screen TUI program.

* https://man.netbsd.org/wsdisplay.4

(The manual says that character values are "ASCII", but the data structure uses a 16-bit unsigned integer for them. So I wonder whether this is UCS-2 or NetBSD has been saddled with some 512-entry character set mess from back in the 1990s.)

Presumably there is a third one if the virtual terminal's wsdisplay is in graphics mode and one can access its frame buffer.

There was also a fourth for the serial console screenshots, although they were clearly done the boring way by screenshotting a GUI window, as its scrollbars are visible in the images. Presumably the terminal emulator at the other end of the connection had some sort of direct screen shotting functionality. That was definitely something that serial device DTE emulator programs in the days of yore used to have.

That's an interesting thought, actually. I wonder whether one could do that at all with many Unix/Linux tools, like GNU screen in its serial terminal mode. One could with (some of) the terminal emulators that used to be available for MS/PC/DR-DOS. There would be some "dump screen to file" menu option, or in extremis a TSR program that could do that. (-:

show 1 reply
topsecret06/04/2025

The installer was run in a VM, so presumably that's how screenshots were taken.

> Both installations will be in VMs just for the sake of convenience.

show 1 reply
ho_schi06/04/2025

On Linux there is the handy fbgrab. I guess they have something similar.

https://github.com/GunnarMonell/fbgrab

You also can set timeouts and switch between virtual terminals.

PS: I’m love good TUIs. Clean and concise and it is surprising how well user can use them. If - they’re well made. I think the installer of Debian or Linux menuconfig are good examples.

numpad006/04/2025

Cheapest HDMI splitters are ~$10 and compressing capture cards are ~$5, it's not hard or expensive anymore to capture display contents at emergency or illustrative use quality if these weren't VM screenshots or taken through OS feature.