Commit Graph

8601 Commits

Author SHA1 Message Date
fang
91f32ee098
dill: reify sessions interface
Implements tasks for creating and deleting new sessions, and allows
terminal handler agents to distinguish between sessions.

Includes bits of preparation in drum to more fully support multiple
distinct sessions, but doesn't get it all the way there just yet.
2021-04-05 22:37:38 +02:00
fang
5ef68d38c7
gall: stop sending %onto
Gall would send %onto gifts to notify about app updates and update
failures. This would end up in dill, which printed some appropriate
text.

Here, we make gall responsible for doing this printing itself (by
having it explicitly ask dill to print some tape/tank), instead of
relying on the receiving end of some bespoke notification protocol.
2021-04-04 17:22:41 +02:00
fang
c4f470ec15
dill: properly support %talk, tanks printing
Also allowing for sequences of tanks. (Not to be confused with +tang,
which has stack trace/reverse-order semantics.)
2021-04-04 17:15:36 +02:00
fang
0a75ca19f3
kh: support mouse reporting for %hit belts
This comes with the caveat that this specific mouse reporting mode
(which should only report clicks of the primary button) doesn't
actually seem to be supported by most terminal emulators, even though
it precedes the more complex reporting modes.

(Enabling a more complex reporting mode instead would also capture
scroll events, which interferes with expected behavior while in tmux.)
2021-04-02 14:25:29 +02:00
fang
01b8995e33
kh: decouple trace & slog writing from drum prompt
New blit logic already stopped assuming the bottom line based on %nel
blits, instead looking at cursor position to determine if something
was getting drawn to the bottom of the screen or not.

Here, we stop overwriting the bottom line entirely (except for the
spinner), instead inserting the trace/slog directly above the bottom
line on-screen, without overwriting anything.

Side-effect of this is that trailing newlines are always there, so we
can stop including them explicitly.
2021-04-02 14:21:22 +02:00
fang
a90489830d
kh: update Term for new dill interface
Support new Belts/Blits and updated semantics.
2021-04-02 13:58:13 +02:00
fang
1abbe168fe
kh: expose to/fromNoun template logic separately
Separately from deriveNoun, which gives you an entire instance. Having
access to these lets you call out to the auto-generated conversion
logic when writing custom code for it.
2021-04-02 13:21:20 +02:00
fang
7e2cc77ae0
clay: explicitly ask dill to print changelist
Instead of emitting a "debug message" gift and hoping dill picks it up
for printing.
2021-03-31 22:28:22 +02:00
fang
49a991e40e
term: final +belt tweaks
The previous version allowed for redundant values (both [%bac ~] and
[%key ~ %bac ~] for example), had an odd constraint in @cF, and relied
unnecessarily on $<.

Also rewords some of the belt and blit descriptions.
2021-03-19 23:56:51 +01:00
fang
1d43942bf2
various: fix compilation failures
Due to recent dill changes.
2021-03-15 21:19:28 +01:00
fang
7fe8c67684
drum: restrict +se-blin to expected/sane blits
We only expect the two primary screen-draw blits here.
2021-03-13 02:34:45 +01:00
fang
8f92265680
term: correctly deduce stub memory requirements
We were only counting one instead of two colors (fg/bg), and not
allowing for combined decorators.
2021-03-13 02:20:11 +01:00
fang
23ec162c2f
term: rewrite _term_it_send_csi
Instead of asynchronously printing the sequence as we render it,
construct it once and then write it out synchronously.
2021-03-13 02:20:10 +01:00
fang
d355d3b71c
webterm: improve style & dark mode reactivity
Now reacts to changes in light/dark more, uses Landscape font set,
covers up container gaps.
2021-03-13 02:20:08 +01:00
fang
81e7808247
webterm: improve state management/lifecycle
Results in slightly better behavior... but it still breaks on dev
auto-refresh?

Also no longer does the ''<->'default' transform for the default session
identification in state, instead always using the empty string.
2021-03-13 02:20:07 +01:00
fang
4b7f05c681
dill: rename %lin to %put
It's no longer strictly a full line of screen content, instead more
accurately described now as "put text at cursor".
2021-03-13 02:20:00 +01:00
fang
2861de983b
dill: replace %ctl and %met belts with %key
Previously, we relied on foolish hacks, like [%met %bac], to send
"special" keystrokes with modifiers.

This updates the belt type to have %key, which represents a single
keystroke, with any combination of modifier keys.

Note that this has overlap with %txt to some extent. [%key ~ 'a'] should
be considered equivalent and preferred to [%txt 'a' ~], but updating
existing usage is left to a later commit.
2021-03-13 02:19:36 +01:00
fang
544126f3ee
Merge remote-tracking branch 'origin/release/next-js' into m/next-gen-term 2021-03-10 11:49:08 +01:00
Liam Fitzgerald
d82e886e2a
UnjoinedResource: fix crash 2021-03-10 17:19:08 +10:00
Liam Fitzgerald
e44f78ad1b
Profile: fix broken status 2021-03-10 16:15:34 +10:00
Liam Fitzgerald
c0eddeda4b
notifications: fix refresh bug
Fixes urbit/landscape#546
2021-03-10 16:11:13 +10:00
Liam Fitzgerald
ca682f7bcf
RemoteContent: fix store access 2021-03-10 15:56:22 +10:00
Liam Fitzgerald
77857a487e
Merge pull request #4510 from tylershuster/zustand-stores
interface: convert stores to zustand
2021-03-10 15:40:29 +10:00
janeway
d17779972f
glob: update to 0v3.o81b7.9dkd7.6ubrn.ebhmi.dtree 2021-03-10 12:12:21 +10:00
Liam Fitzgerald
80efb64190
LinkItem: safely access size
Fixes urbit/landscape#542
2021-03-10 11:53:25 +10:00
Liam Fitzgerald
869a25adcf
RemoteContent: use settings instead of local state
Fixes urbit/landscape#544
2021-03-10 11:50:55 +10:00
Tyler Brown Cifu Shuster
4055eac9b9 interface: prevent comment crash by sanity checking size 2021-03-09 17:42:43 -08:00
Tyler Brown Cifu Shuster
f89b7fcbae Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-09 17:03:45 -08:00
fang
da5177aeac
Merge branch 'master' into m/next-gen-term 2021-03-10 01:19:00 +01:00
janeway
640190610c glob: update to 0v7.sjbvb.4gg0l.1qmbv.fmobl.d2tsq 2021-03-09 17:18:58 -05:00
Logan Allen
33cc337442 interface: links opacity 2021-03-09 16:03:00 -06:00
Logan Allen
cbef07d19f interface: working timestamp fuzzy diffing 2021-03-09 15:38:48 -06:00
Logan Allen
0fc7c312ab interface: unpleasant changes to pending states 2021-03-09 15:01:05 -06:00
Logan Allen
731732a86e interface: graph reducer fix receive before pending bug 2021-03-09 14:34:53 -06:00
Tyler Brown Cifu Shuster
7161174ca5 interface: update state hooks to accomodate graph schema changes 2021-03-09 10:58:49 -08:00
Tyler Brown Cifu Shuster
5328aae1a6 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-09 10:58:29 -08:00
janeway
4e9873359d glob: update to 0v3.i5rmt.7fid4.sr9bh.0pcpi.cmc0v 2021-03-09 18:07:06 +00:00
Logan Allen
e080233c91 Merge branch 'release/next-js' into la/release-2021-03-04 2021-03-09 17:58:35 +00:00
Matilde Park
4b86de5c83 chat: make code blocks inherit from input color 2021-03-09 12:54:50 -05:00
matildepark
c3d7c6eaa1
Merge pull request #4568 from urbit/lf/tutorial-polish
Tutorial: polish for release
2021-03-09 12:41:57 -05:00
matildepark
ba24935192
Merge pull request #4569 from urbit/lf/dark-sigils
Sigils: fix default background
2021-03-09 12:37:51 -05:00
Tyler Brown Cifu Shuster
7864d91b14 interface: grabbag of fixes for state hook implementation 2021-03-09 08:32:55 -08:00
Liam Fitzgerald
e296a5d986
Tutorial: dismiss correctly 2021-03-09 12:59:54 +10:00
Liam Fitzgerald
f1ae3ab81b
Sigils: fix default background 2021-03-09 12:47:19 +10:00
Matilde Park
8f8786ff26 tutorialModel: fix syntax error 2021-03-08 21:44:43 -05:00
matildepark
898561ea30
Merge pull request #4565 from urbit/lf/grabbag
interface: grabbag of fixes
2021-03-08 21:36:34 -05:00
matildepark
f1dc011aae
Merge pull request #4566 from urbit/lf/group-invites
Invites: accept already joined group
2021-03-08 21:32:26 -05:00
matildepark
348ca8b3a7
Merge pull request #4559 from urbit/james/message-from-profile
profile: surface "message" action on non-owned profiles
2021-03-08 21:31:55 -05:00
Tyler Brown Cifu Shuster
1b17bcd286 interface: addressed store feedback; cleaning up 2021-03-08 17:48:24 -08:00
Tyler Brown Cifu Shuster
e7e03b0956 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-08 17:46:03 -08:00