Hello!
I'm looking for fgconsole program that gives active (foreground) console number.
In kbd-1.15 package (Fedora) it calls "ioctl(fd, VT_GETSTATE, &vtstat)" and returns "vtstat.v_active".
Is there such program available for TinyCore?
If not, I've made a patch for busybox-1.14.3 that implements this feature.