-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdcmdterm.1
More file actions
104 lines (104 loc) · 2.75 KB
/
dcmdterm.1
File metadata and controls
104 lines (104 loc) · 2.75 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
.\" $Id$
.\"
.\" Copyright (c) 2016--2018 Kristaps Dzonsons <[email protected]>
.\"
.\" This library is free software; you can redistribute it and/or
.\" modify it under the terms of the GNU Lesser General Public
.\" License as published by the Free Software Foundation; either
.\" version 2.1 of the License, or (at your option) any later version.
.\"
.\" This library is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
.\" Lesser General Public License for more details.
.\"
.\" You should have received a copy of the GNU Lesser General Public
.\" License along with this library; if not, write to the Free Software
.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
.\" MA 02110-1301 USA
.\"
.Dd $Mdocdate$
.Dt DCMDTERM 1
.Os
.Sh NAME
.Nm dcmdterm
.Nd graph dives on the terminal
.Sh SYNOPSIS
.Nm dcmdterm
.Op Fl alntv
.Op Ar files...
.Sh DESCRIPTION
The
.Nm
utility accepts XML files generated by
.Xr dcmd 1
and graphs depths and/or temperatures on the terminal.
Multiple dives are stacked atop each other.
Its arguments are as follows:
.Bl -tag -width Ds
.It Fl a
Accumulate dives instead of showing them stacked.
This is useful for free-diving where multiple dives are done in
sequence.
.It Fl l
Show the legend.
.It Fl n
Don't show UTF-8 or ANSI colours.
.It Fl t
Show temperatures if the dive profile contains them.
.It Fl v
Parse files in verbose mode.
.It Ar files...
XML input files with one or more dives.
.El
.Pp
.Nm
uses ANSI/VT100 terminal escapes for console manipulation and
colours.
If
.Ar files
is empty or
.Dq \&- ,
standard input is used.
.Pp
By default,
.Nm
graphs depth.
Each dive is associated with a colour that is the same for both graphs.
In practise, more than three dives is a little much.
A title is printed above the graphs, along with the associated line
colour, identifying the dive.
.Pp
Multiple graphs are stacked atop each other with the x-axis being the
relative time into the dive.
In
.Fl a
accumulation mode, however, graphs are shown as starting at the first
date and time.
.Pq Dives must have been parsed with a date and time .
This is useful, for example, with a sequence of free-dives.
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
To pipe the output of the day's free-dives from on a Suunto D6i:
.Pp
.Dl dcmd -r \(dq\(dq \(dqd6i\(dq | dcmdterm -a
.Pp
This will extract only the current day's dives, then format them one
after another instead of stacking them atop each other.
.Pp
To compare two dive profiles previously downloaded into
.Pa dive1.xml
and
.Pa dive2.xml ,
run:
.Pp
.D1 dcmdterm -l dive1.xml dive2.xml
.Sh SEE ALSO
.Xr dcmd 1
.Sh AUTHORS
The
.Nm
utility was written by
.An Kristaps Dzonsons ,
.Mt [email protected] .