Tiny Core Base > TCB Talk
Get active console number (fgconsole)
(1/1)
grisxa:
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.
curaga:
None that I know of. Please send the modifications upstream in addition to here, though.
grisxa:
--- Quote from: curaga on April 26, 2010, 05:54:01 AM ---Please send the modifications upstream in addition to here, though.
--- End quote ---
Ok, I've filed bug #1639 (patch updated to 1.16.1).
curaga:
Your patch for 1.16.1 broke the busybox help; attached a patch for that.
The file was supposed to be alpha sorted, and fgconsole was originally right after chvt :)
grisxa:
--- Quote from: curaga on May 01, 2010, 01:48:31 AM ---Your patch for 1.16.1 broke the busybox help; attached a patch for that.
The file was supposed to be alpha sorted, and fgconsole was originally right after chvt :)
--- End quote ---
Sorry, I didn't know about that :)
Navigation
[0] Message Index
Go to full version