Commit Graph

23871 Commits

Author SHA1 Message Date
fang
74924d3468
webterm: update for nu-dill, rewrite with xterm.js
Updates /app/herm and dependencies to work with latest dill, and
rewrites the entire webterm frontend to use xterm.js for rendering.

Webterm code needs a bit more work. Its subscription handling might
want to be moved out, it needs to handle resizing, react to landscape
theme changes, etc.
2021-03-08 16:19:33 +01:00
fang
7e2a6efd70
Merge branch 'release/next-sys' into m/next-gen-term 2021-02-19 19:43:40 +01:00
fang
374c6c8f4a
vere: render printfs in grey
To hint to developers that this form of output isn't as concrete or
reliable as they might assume it to be.
2021-02-19 19:42:41 +01:00
fang
66f37099ba
vere: clean up, rename, undo debug changes, etc. 2021-02-19 19:42:40 +01:00
fang
ea1b348754
term: ensure spinner is drawn on the bottom line
That's the one line we track. If it gets drawn anywhere else, we can't
restore the overwritten contents.
2021-02-19 19:42:23 +01:00
fang
a3acc70384
Merge branch 'master' into release/next-sys 2021-02-19 19:31:24 +01:00
fang
84fd574636
term: ensure pre-init logging renders nicely
Without the \r, the first couple printfs (generally, regarding replay)
would not align on the lefthand side.
2021-02-19 12:50:52 +01:00
fang
881f9ebfaa
drum: redraw prompt only if it changed 2021-02-19 12:24:31 +01:00
fang
b936e1d928
term: save only changes to the bottom line
The bottom line is where we draw the spinner, so we're only interested
in screen draws that affect that part of the screen (so that we may
restore it after having drawn the spinner there).

Given recent changes, redraws should be less frequent than updates, so
we lazily store the utf32 encoded line contents in state, instead of
the eagerly converted utf8 version.
2021-02-19 11:58:33 +01:00
Liam Fitzgerald
fab9a47a92
Merge remote-tracking branch 'origin/ixv/settings-existence-scry' 2021-02-19 12:47:47 +10:00
Logan Allen
c4dead9661 contact-store: fix is-public being set to false on frontend 2021-02-18 13:19:52 -06:00
Logan Allen
6ee6a99acf contact-store: upon %edit of a nonexistent contact, make an empty contact and set that field 2021-02-18 11:51:15 -06:00
fang
d974d4cc4e
term: restore cursor position after draw calls
This keeps the cursor position at the last %hop location. And being able
to go back to that position without relying on state is just plain
convenient.

The exception here is %nel blits, which move the cursor (down and) to
the start of the line, as expected of "new line" semantics.
2021-02-18 13:51:24 +01:00
Isaac Visintainer
815c64b074 settings-store: add existence scry 2021-02-17 16:52:45 -08:00
fang
0d8288e666
term: better %url handling
%url blits are meant for "activating" urls. Of course, opening a new
browser tab from within a C program is difficult, so we don't do it.

This is still better than doing the faux activation by just printing
the url. term.c no longer really knows where/how to draw it, and it's
meant as interactive behavior rather than visual output, anyway.
2021-02-18 01:44:33 +01:00
fang
a4e20facb7
term: decouple line clearing from line printing
This simplifies the behavior of individual blits, making their
implementation simpler and giving arvo more control.

This lets us write on top of existing content, instead of completely
replacing the affected row. Additionally, lets us draw starting at the
cursor position, instead of the leftmost column.

To retain the previous behavior, preface with [%hop 0] to move the
cursor to the start of the line, [%wyp ~] to clear the existing content,
and finally your %lin to render it.
2021-02-18 01:44:26 +01:00
fang
8a3605f818
term: rename _show_clear to _clear_line 2021-02-17 17:17:46 +01:00
fang
30ac51e281
term: no longer redraw the prompt as part of %clr
Instead, rely on the console application to send whatever is needed
directly following a %clr blit.
2021-02-17 17:04:45 +01:00
Liam Fitzgerald
081c4579b2
glob: update to 0v5.pmklm.qttdl.n8bs0.0tnc4.gg633 2021-02-17 14:35:44 +10:00
Liam Fitzgerald
38dcd49630
Merge branch 'lf/dropdown-bubbling' into release/hot-21-2-17 2021-02-17 14:29:22 +10:00
Liam Fitzgerald
b6513d7f49
Merge branch 'lf/landscape-fixesx' into release/hot-21-2-17 2021-02-17 14:28:53 +10:00
Liam Fitzgerald
57dfc24882
AddChannel: fix sig mismatch 2021-02-17 11:36:00 +10:00
fang
75b2c025e5
term: cap & store cursor row position
Adds the vertical position of the cursor to mirror state, and caps the
cursor movement to the edges of the known window.
2021-02-17 01:48:58 +01:00
matildepark
319efc829c
Merge pull request #4447 from urbit/mp/links/add-import
LinkWindow: add missing 'text' import
2021-02-16 16:41:22 -05:00
matildepark
a348a16c07
Merge pull request #4449 from urbit/mp/chat/code-msg
chat: render all code output, not just first line
2021-02-16 16:40:59 -05:00
Matilde Park
240e9b5c5c chat: render all code output, not just first line 2021-02-16 15:35:47 -05:00
matildepark
31e97a368a
Merge pull request #4397 from urbit/lf/markdown-linebreaks
TextContent: handle linebreaks before feeding parsing
2021-02-16 15:04:35 -05:00
Matilde Park
c7d818ab49 LinkWindow: add missing 'text' import
Fixes urbit/landscape#433
2021-02-16 14:56:24 -05:00
fang
00dd0656e8
zuse: move styx engine into zuse
styx and stub are both defined in lull. Having functions for dealing
with them in zuse rather than userspace is fitting.

While not a _common_ format per se, it still seems best at home in
+format, instead of on its own.
2021-02-16 17:33:58 +01:00
fang
2e7afdd543
lull: remove old/unused dill tasks
Some of the remainder are still _presently_ unused, but point at
functionality we want to support again in the near future. The ones
removed here are either redundant or have no clear purpose.
2021-02-16 17:33:57 +01:00
fang
53cd568af9
dill: printf when rendering to non-default session
As per the note a couple lines up, +fore depends on drum semantics being
active. We can only guarantee those being present for the default
session, not for any others. So, we print a warning when appropriate.
2021-02-16 17:33:56 +01:00
fang
9f0166914f
dill: tidier gall %onto print
Before recent dill changes, this wouldn't always be visible, since it
would get drawn in place of (and subsequently get overwritten by) the
prompt. Now that it displays consistently again, it should look a bit
better than just a noun dump.

This is somewhat redundant with gall's own "reloading agent" printfs,
but you know what they say: printfs don't real!
2021-02-16 17:33:48 +01:00
Liam Fitzgerald
1274d35d5a
group-view: handle unmanaged group case 2021-02-16 13:48:23 +10:00
Liam Fitzgerald
3548c984a9
Dropdown: fix event propagation
Fixes urbit/landscape#427
2021-02-16 13:04:12 +10:00
Liam Fitzgerald
899ead25fb
hark-store: give %read-all fact
Fixes urbit/landscape#402
2021-02-16 12:29:17 +10:00
Liam Fitzgerald
a4d717030d
metadata-push-hook: correct association key
Fixes urbit/landscape#405
2021-02-16 12:29:17 +10:00
Liam Fitzgerald
a9d2381d0e
SidebarListHeader: look in %groups not %contacts assocs
Fixes urbit/landscape#405
2021-02-16 12:29:17 +10:00
Liam Fitzgerald
ba57ad2222
AddGroup: fix activation from leap
Fixes urbit/landscape#439
2021-02-16 12:29:17 +10:00
Liam Fitzgerald
79596d4ca8
metadata-store: update +remove
Fixes urbit/landscape#428
2021-02-16 12:29:16 +10:00
Liam Fitzgerald
f5268a528f
graph-push-hook: correctly call +get-roles-writers-variation
Fixes urbit/landscape#423
Fixes urbit/landscape#424
2021-02-16 12:29:05 +10:00
Liam Fitzgerald
66d9fd8426
sane: fix accidental self kick
Does not remove ourselves from the group when run. Additionally adds
card preview support to the inside app pokes.

Fixes urbit/landscape#442
2021-02-16 12:24:30 +10:00
janeway-bot
c56af887dd
Merge 79f461f5c9 into release/next-js 2021-02-13 09:25:50 +04:00
Liam Fitzgerald
79f461f5c9
glob: update to 0v7.iotki.j1ptb.mk9vm.borai.jfcr1 2021-02-13 15:24:06 +10:00
Liam Fitzgerald
e7cf66c3b1
Merge branch 'lf/init-loop' 2021-02-13 15:17:10 +10:00
Liam Fitzgerald
9e3c048855
contact-store: address L review 2021-02-13 15:14:36 +10:00
Liam Fitzgerald
dbafffd783
contact-store: enforce timestamp ordering on %initial 2021-02-13 14:56:53 +10:00
Matilde Park
a91f96751b invite: prevent interface crash
We're accessing invite.ship when we don't have invite. This stubs that
out.
2021-02-12 22:37:12 -05:00
janeway-bot
9ce9cb3d5f
Merge 58faf16872 into release/next-js 2021-02-13 02:54:41 +04:00
janeway
58faf16872 glob: update to 0v5d3ek.msaj7.n78mj.updun.qc1ea 2021-02-12 17:50:20 -05:00
Matilde Park
23bf417f4c Merge branch 'release/next-js' 2021-02-12 17:43:02 -05:00