summary refs log tree commit diff
path: root/bin/man1/dtch.1
blob: f8ec92967a1390b58721a96daf8b9ee08c557dbf (plain) (blame)
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
.Dd September 7, 2018
.Dt DTCH 1
.Os
.
.Sh NAME
.Nm dtch ,
.Nm atch
.Nd detached sessions
.
.Sh SYNOPSIS
.Nm
.Op Ar name Op Ar command ...
.Nm atch
.Op Ar name
.
.Sh DESCRIPTION
.Nm
spawns the
.Ar command
.Po
by default,
the value of
.Ev SHELL
.Pc
inside a new PTY.
It then lends control of the detached PTY to
.Nm atch
over a UNIX-domain socket.
.Nm
should be run as a background job or with
.Xr nohup 1 .
.
.Pp
.Nm atch
attaches to the
.Nm
session with the corresponding
.Ar name .
To detach from a session, type
.Ic ^Q .
.
.Sh ENVIRONMENT
.Bl -tag -width "SHELL"
.It Ev HOME
Location of
.Pa .dtch
directory for UNIX-domain sockets.
.It Ev SHELL
The default command to run,
or
.Pa /bin/sh
if unset.
.El
.
.Sh EXAMPLES
.Bd -literal -offset indent
dtch foo vim &
atch foo
.Ed
.
.Sh SEE ALSO
.Xr nohup 1 ,
.Xr screen 1 ,
.Xr forkpty 3
ne McEnroe This makes htop mostly work. Scrolling region still missing. 2019-07-12Support insert mode in shottyJune McEnroe This is how curses puts characters into the bottom-right cell of the terminal. 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe