on master help sign in
Merge pull request #56 from joemfb/talk-examples
76bad7bGalen Wolfe-Pauly
docs/using/messaging.md+45−1
@@ -27,7 +27,9 @@ For the most part we use `:talk` as a single-instance of Slack: one main channel
27
27
28Let's join `/urbit-meta`:
28Let's join `/urbit-meta`:
29
29
30+Use `ctrl-x` to switch from `:dojo` to `:talk`, then:
31+
30− ~your-urbit: ;join ~doznec/urbit-meta
32+ ~your-urbit:talk> ;join ~doznec/urbit-meta
31
33
32You'll see:
34You'll see:
33
35
@@ -95,14 +97,56 @@ insert a Unicode bullet-point character in an appropriate space
95in your post, to show you the prospective linebreak. Your essay
97in your post, to show you the prospective linebreak. Your essay
96will be posted in multiple lines.
98will be posted in multiple lines.
97
99
100+ ~your-urbit:talk> this is a long message, so it will by truncated right at this•spot
101+
102+will print as
103+
104+ ~your-urbit; this is a long message, so it will by truncated right at this
105+ ~your-urbit; spot
106+
98#### URLs
107#### URLs
99
108
100A URL is any valid URL.
109A URL is any valid URL.
101
110
111+ ~your-urbit:talk> http://example.com
112+
102### Commands
113### Commands
103
114
104A command is a hoon expression, prefaced by '#'.
115A command is a hoon expression, prefaced by '#'.
105
116
117+ ~your-urbit:talk> #(add 2 2)
118+
119+### Activating Lines
120+
121+A line number identifying the *subsequent* line is displayed every 5 lines.
122+
123+ ---------[0]
124+ ~your-urbit; this is my message
125+ ~your-urbit@ this is an @ message
126+ ~your-urbit; this is a long message, so it will by truncated right at this
127+ ~your-urbit; spot
128+ ~your-urbit/ http://example.com/
129+ ---------[5]
130+ ~your-urbit# (add 2 2) 4
131+
132+You can use a line number to *activate* a line:
133+
134+ ~your-urbit:talk> ;0
135+
136+which prints the number, line identifier, timestamp, sender, audience,
137+and contents:
138+
139+ ? 0
140+ 0v3.hl51p.jhege.amhec.vb37r.3rejr at ~2016.6.24..04.48.21..a235
141+ ~your-urbit to ~another-urbit
142+ this is my message
143+
144+Activating a URL will print the full URL (it could have been truncated),
145+and activating a command will evaluate it.
146+
147+You can activate the most recent line with `;`, the second-most recent with
148+`;;`, and so on.
149+
106### Creating and managing stations
150### Creating and managing stations
107
151
108`;create journal %serious-journal 'description'` - Creates a `%journal`, a privately writable publicly readable station.
152`;create journal %serious-journal 'description'` - Creates a `%journal`, a privately writable publicly readable station.