Jonathan Harston
2022-08-07 22:52:16 UTC
In Unix, user code can't "see" I/O locations. Is there an API to access
the blinkenlights? V5 and V6 had the switch() call that read the
switches, but it was dropped in V7, and there's nothing that would
write to the lights. Is there any way of writing to the lights in Bell
or BSD Unix? I'd love to be able to do something like this on my
PiDP (running BSD2.11):
#include <whatever.h>
main()
{
somethingsomething(42); /* Set lights to 00101010 */
}
jgh
the blinkenlights? V5 and V6 had the switch() call that read the
switches, but it was dropped in V7, and there's nothing that would
write to the lights. Is there any way of writing to the lights in Bell
or BSD Unix? I'd love to be able to do something like this on my
PiDP (running BSD2.11):
#include <whatever.h>
main()
{
somethingsomething(42); /* Set lights to 00101010 */
}
jgh