Bug 1639

Summary: fgconsole support
Product: Busybox Reporter: Grigory Batalov <gbatalov>
Component: OtherAssignee: unassigned
Status: CLOSED FIXED    
Severity: enhancement CC: busybox-cvs
Priority: P3 Keywords: patch
Version: 1.16.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: fgconsole utility
Fix for embedded help

Description Grigory Batalov 2010-04-26 15:05:31 UTC
Created attachment 1579 [details]
fgconsole utility

In addition to chvt utility I suggest to support fgconsole that gives active console number.

In core this could be "ioctl(fd, VT_GETSTATE, &vtstat)" call with vtstat.v_active containing console number.

See the patch for busybox-1.16.1.
Comment 1 Grigory Batalov 2010-05-04 15:48:20 UTC
Created attachment 1627 [details]
Fix for embedded help

Curaga from TinyCore Linux has pointed that embedded busybox help should be alpha sorted, see his patch.
Comment 2 Denys Vlasenko 2010-05-23 21:22:56 UTC
Applied with some small changes. Thanks!