Bug 1639 - fgconsole support
Summary: fgconsole support
Status: CLOSED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.16.x
Hardware: PC Linux
: P3 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-04-26 15:05 UTC by Grigory Batalov
Modified: 2010-05-24 06:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
fgconsole utility (4.96 KB, patch)
2010-04-26 15:05 UTC, Grigory Batalov
Details
Fix for embedded help (437 bytes, patch)
2010-05-04 15:48 UTC, Grigory Batalov
Details

Note You need to log in before you can comment on or make changes to this bug.
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!