-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathnestvt.1
More file actions
33 lines (33 loc) · 1.22 KB
/
nestvt.1
File metadata and controls
33 lines (33 loc) · 1.22 KB
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
.TH nestvt 1
'''
.SH NAME
\fBnestvt\fR \- \fBptyhub\fR client for PTY-based terminal emulators.
'''
.SH SYNOPSIS
.IP "\fBnestvt \fIcommand\fR \fIarg arg arg ...\fR\fR" 4
Start given application.
.IP "\fBnesvt +\fIxid\fR" 4
Attach to specified session.
'''
.SH DESCRIPTION
\fBnestvt\fR allows using conventional, PTY-allocating terminal emulator
as a client for \fBptyhub\fR.
.P
In order to support detached sessions, \fBptyhub\fR allocates PTY for each
process it spawns. Ideally, this one PTY should be enough, and the terminal
emulator should just request the master side fd from \fBptyhub\fR and proceed
to use it. Most Linux terminals are designed with a different model of
operation in mind: the terminal itself allocates a PTY, and spawns the
application.
.P
The role of \fBnestvt\fR is to provide a link between the PTY that \fBptyhub\fR
allocated, and the one that a convential terminal emulator allocated for its
own use.
.P
Running two PTYs instead of one for a single application is sub-optimal,
however, this trick does allow using wide variety of terminals together with
\fBptyhub\fR. This scheme is quite similar to how other detachable terminal
emulators (screen, tmux, dtach) work.
'''
.SH SEE ALSO
\fBptyhub\fR(8), \fBptyctl\fR(1).