-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcrabterm.sample
More file actions
89 lines (73 loc) · 2.96 KB
/
crabterm.sample
File metadata and controls
89 lines (73 loc) · 2.96 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
# Crabterm configuration file
# Copy to ~/.crabterm to customize keybindings
#
# Key syntax: Ctrl+a, Ctrl+Shift+x, Alt+F1, Escape, F1-F12, single chars
# Actions: quit, send "string", send-bytes 0x1b 0x4f, filter-toggle <name>
# Prefix key - press this first, then the action key
prefix Ctrl+a
# Direct bindings - no prefix needed
map Ctrl+q quit
# Prefix bindings - press prefix, then these keys
map-prefix q send "\x11" # Sends ctrl+q to device
map-prefix Ctrl+a send "\x01" # Sends ctrl+a (prefix) to device
# Key-binding to toggle filters
map-prefix t filter-toggle timestamp
map-prefix c filter-toggle charmap
## Announcements ###############################################################
# Configure the format of announcements (device status, new clients, etc.)
# Placeholders:
# %d - date (yyyy-mm-dd)
# %m - message
# %s - source (e.g. "Local" or "127.0.0.1:4000")
# %t - time (hh:mm:ss)
# %% - literal '%'
#
# Examples:
# set announce-template "MSG-%s: %t %m\r\n"
# set announce-template "{%t} [%s] %m\r\n"
# set announce-template "[%d %t] %s: %m\r\n"
set announce-template "MSG-%s: %t %m\r\n"
## Device Monitor ##############################################################
# Configure a port to monitor all RX/TX data to/from the device.
# All data is escaped: (\n\r\t\\ or \xHH)
# A new record is started on:
# - Every \n
# - Every direction change (RX <-> TX)
#
# Placeholders:
# %s - (source) direction (RX/TX)
# %S - (source) swapped direction (TX/RX)
# %m - escaped message character
# %t - time when record started (hh:mm:ss)
# %d - date when record started (yyyy-mm-dd)
# %% - literal '%'
#
# Examples:
# set device-monitor-port 4001
# set device-monitor-template "%s: %m\n"
# set device-monitor-template "[%t] %s: %m\n"
# set device-monitor-port 4001
# set device-monitor-template "%s: %m\n"
## timestamp filter ############################################################
# Configure the timestamp filter (notice, filter must be enabled to have any
# effect)
set timestamp-abs on # show time-of-day time-stamp
set timestamp-rel off # show time since last line
## Charmap filter ##############################################################
# Character mapping filter (picocom-compatible (I think...))
# Maps characters for input (terminal -> device) and output (device -> terminal)
# Filter auto-enables when mappings are configured, toggle with keybind
# Available mappings (comma-separated):
# crlf - Map CR to LF (\r -> \n)
# crcrlf - Map CR to CRLF (\r -> \r\n)
# igncr - Ignore CR (\r -> nothing)
# lfcr - Map LF to CR (\n -> \r)
# lfcrlf - Map LF to CRLF (\n -> \r\n)
# ignlf - Ignore LF (\n -> nothing)
# bsdel - Map BS to DEL (0x08 -> 0x7f)
# delbs - Map DEL to BS (0x7f -> 0x08)
#
# charmap-imap: mappings for data FROM device (output to terminal)
# charmap-omap: mappings for data TO device (input from terminal)
# set charmap-imap crlf,delbs
# set charmap-omap crcrlf