blob: 9f5e949a531feb307170f9b1580b60c430691bd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.TH grab_vcsa 1 "22 jan 2006" "Free Pascal" "Linux console vcsa grabber"
.SH NAME
grab_vcsa \- Linux console vcsa grabber
.SH SYNOPSIS
.B "grab_vcsa"
.BR
.SH DESCRIPTION
The
.I Linux
console allows text mode
.I video buffer access^\fR. For each tty device
(/dev/tty0..31) there exist two devices (/dev/vcs0..31) and (/dev/vcsa0..31).
These devices are two different representations of the content of the console.
When you login on the Linux console, your tty device is changed owner to you,
so you can read/write it. When you logout it is takes from you. This does not
happen with the vcs and vcsa devices, i.e. you cannot access the video buffer
of your own tty.
Unfortunately there is a lot of reason to use the text mode video buffer. For
instance, it is not possible to get access to the full 256 characters the VGA
adapter can display without using the text mode video buffer (Linux emulates
the vt100 character set which does not have all VGA characters). This
annoyance severely limits the porting possibilities to Linux of software
that was written with a VGA character set in mind.
.B grab_vcsa
is a setuid root program that, when called will change the owner of the vcs
and vcsa devices to you, after a series of security checks have been performed.
It is not necessary to change the permissions back again (this would be pointless
since a user could kill a imaginary release_vcsa program before it can do its
work). The permissions are automatically reverted on logout.
.B grab_vcsa
is used by the Free Pascal video unit. The video unit allows programmers to
develop portable programs accross Dos, Linux, FreeBSD, Windows, OS/2 and
other operating systems while they can still assume being able to use the
full VGA character set.
.SH RETURN CODES
.B grab_vcsa
has the following return codes:
.TP
.BR 0
Success
.TP
.BR 1
You are not running on the Linux console
.TP
.BR 2
Error while statting tty.
.TP
.BR 3
Error while executing chown.
.TP
.BR 4
Error while executing chmod.
.TP
.BR 4
You do not own your own tty.
.SH AUTHOR
Daniel Mantione <daniel.mantione@freepascal.org>
|