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
# Example calcli session state, for trying out a pre-filled history.
#
# Copy to your state directory to load it on the next start:
# $XDG_STATE_HOME/calcli/state.toml (or ~/.local/state/calcli/state.toml)
#
# calcli normally writes this file itself on exit; this sample shows the format.
# History values are recomputed on load, so the `ans` chain stays consistent.
# A state.toml written by any older calcli still loads: the `[ui]` section may
# be absent, and a dimensionless variable may be a bare number (`g = 9.81`)
# rather than a table.
[]
= "decimal"
= 3
= "deg"
= "."
= true
# The interface state: 0 = Calc, 1 = Variables, 2 = Settings.
[]
= 0
= "calcli"
= "unicode"
= true
[]
= 9.81
[]
= 2.0
# A variable carrying a unit.
[]
= 50.0
= "kN"
[[]]
= "2 * pi * r"
= 12.566370614359172
[[]]
= "ans^2"
= 157.91367041742973
[[]]
= "g * 3"
= 29.43
[[]]
= "x -> N"
= 50000.0
= "N"