comparison toys/chvt.c @ 233:d4176f3f3835

Zap toys/Config.in and instead create generated/Config.in from contents of toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
author Rob Landley <rob@landley.net>
date Sat, 19 Jan 2008 17:08:39 -0600
parents 87390c3700c1
children 163498bf547b
comparison
equal deleted inserted replaced
232:cd4d5630c978 233:d4176f3f3835
1 /* vi: set sw=4 ts=4: */ 1 /* vi: set sw=4 ts=4:
2 /* 2 *
3 * chvt.c switch virtual terminals 3 * chvt.c switch virtual terminals
4 * 4 *
5 * Copyright (C) 2008 David Anders <danders@amltd.com> 5 * Copyright (C) 2008 David Anders <danders@amltd.com>
6 * 6 *
7 */ 7 * Not in SUSv3.
8
9 config CHVT
10 bool "chvt"
11 default y
12 help
13 usage: chvt N
14
15 Change to virtual terminal number N. (This only works in text mode.)
16
17 Virtual terminals are the Linux VGA text mode displays, ordinarily
18 switched between via alt-F1, alt-F2, etc. Use ctrl-alt-F1 to switch
19 from X to a virtual terminal, and alt-F6 (or F7, or F8) to get back.
20 */
8 21
9 #include "toys.h" 22 #include "toys.h"
10 23
11 #define VT_ACTIVATE 0x5606 24 #define VT_ACTIVATE 0x5606
12 #define VT_WAITACTIVE 0x5607 25 #define VT_WAITACTIVE 0x5607