Commit Graph

7577 Commits

Author SHA1 Message Date
fang
be8713f151
dill: stop tracking prompt & cursor position
As follow-up to 3fdef1468, we now no longer store the prompt or cursor
in state. These were still used for view initialization, but it's more
appropriate to %hey the underlying console application in those cases.
The scry endpoints we remove, expecting clients that depended on them
to send a %hail instead.
2021-02-10 17:03:03 +01:00
fang
3fdef14688
dill: stop redrawing the prompt & cursor
No longer inserts newlines or redraws the prompt post-print, pushing
this responsibility down to drum where it belongs.

Additionally, separates the flow for dill's own output, from that of the
console application. This lets us keep the desired behavior for now, and
will ease reworking in the future.

Last-printed-line and cursor position are still kept around in dill
state, in order to respond to the relevant scry endpoints. These should
either be refactored to scry into the underlying console app, or be
removed entirely in favor of %hey.
2021-02-10 14:23:17 +01:00
fang
7ab6d7dc9c
term: add minimal mouse support
Only detects mouse clicks. Though, "9" mode seems broken, or unsupported
or something? Probably need to upgrade to "1000" mode or higher, but
that also reports scrolling events and such, which don't want to steal
from the context we're running in just yet.
2021-02-10 14:23:03 +01:00
fang
9631be65ad
vere: remove trailing newlines from u3l_log calls
As of dc2c990c0 these are redundant, and keeping them in would result
in trailing whiteline.

The result is that sometimes we call u3l_log with the empty string. We
simply want it to insert a newline into the scrollback for us. GCC
complains about this, because it leads to using an empty format string,
but we consider this sane behavior. We update the flags accordingly.
2021-02-06 01:02:19 +01:00
fang
dc2c990c0f
term: avoid touching prompt during printf
We want to decouple drum state & semantics from term.c. But we also want
to continue showing printfs without mangling whatever the arvo side is
doing. Short of formalizing various "terminal modes", the best we can do
it assume that the main session is always in drum mode, and use that
assumption to squeeze into the actual content stream when doing printfs.

In essence, we insert the printf between the prompt and content, pushing
the content up into terminal scrollback. Both the prompt and cursor
position are maintained without knowledge of their original states.

Because this logic relies on knowing the (accurate) terminal height, and
this logic being the *only* thing in term.c that reads from the height,
we no longer initialize the terminal size with a sane height. Instead,
we set it to zero, and check for that to determine whether we're ready
to use this logic or not.

Due to the way this inserting works, trailing newlines are no longer
required from the output. For consistency, we manually add trailing
newlines when this logic cannot be used, both in the above-described
circumstance, and the less-common case of u3l_log.
This will of course need to be accounted for in all existing calls to
u3l_log, but we move that into the next commit for readability's sake.
2021-02-06 00:03:56 +01:00
fang
8cfa1516d8
term: refactor CSI escape sequence sending 2021-02-04 00:47:57 +01:00
fang
5d8b44ccbc
dill: support 2d %hop
Instead of confining you to just the bottom row. 0,0 is bottom left.

Doesn't behave exactly as expected for non-zero column coordinates yet,
but all in due time.
2021-01-28 01:20:45 +01:00
fang
3ad0c4e1d0
dill: remove outdated compatibility workaround
Current era runs exclusively on v1.0 and up.
2021-01-27 16:47:43 +01:00
fang
48c9f76ba3
term: move cursor to absolute visual position
Instead of relative, character-based position. In anticipation of
greater degrees of cursor freedom, and so that we don't have to
track invisible characters all the time.
2021-01-26 18:37:34 +01:00
fang
776de8b3d9
lull: make dill-blit explicit superset of blit
Likewise for belt. This necessitates renaming the %mor blit for newlines
to %nel, making this require a new runtime version. That's fine, more
breaking changes are to follow.
2021-01-26 18:37:33 +01:00
Liam Fitzgerald
f88318b1b7
glob: update to 0v7.9mc9i.jbk7p.smfcl.3aose.b6dat 2021-01-24 11:28:33 +10:00
Matilde Park
48f34795da links: return submit if no 'first item'
Fixes unfiled bug where creating a new collection returned a blank
screen.
2021-01-23 12:43:19 -05:00
janeway
a9b32192fc glob: update to 0v7.3vkbq.euver.m66ss.rs6kt.06tp8 2021-01-22 17:15:13 -05:00
Matilde Park
06fab93349 chat: disallow markdown links 2021-01-22 16:56:28 -05:00
Matilde Park
b150e4b1e6 landscape: downgrade formik to 2.1.5
Form behaviours are broken above this version.
2021-01-22 16:47:47 -05:00
Matilde Park
318831f6a9 chat: disallow markdown nodes
Using RemarkBreaks and RemarkDisableTokenizers breaks one or
the other in simultaneous use.

We fall back to escaping markdown tokens we don't want.
2021-01-22 16:47:22 -05:00
janeway
d16c228870 glob: update to 0v7.ttn7o.50403.rf6oh.63hnc.hgpc9 2021-01-21 19:15:58 -05:00
Matilde Park
604b338dcd Merge branch 'release/next-js' into release/hotfix/2021-1-21 2021-01-21 19:04:47 -05:00
Matilde Park
71e91458c6 landscape: prevent "back" overflow on mobile 2021-01-21 18:58:06 -05:00
Matilde Park
0db868c1a6 publish: fix background when editing 2021-01-21 18:51:29 -05:00
Matilde Park
4afdb19090 links: pad on small devices 2021-01-21 18:31:41 -05:00
Matilde Park
a610471fb7 interface: update dependencies 2021-01-21 18:26:17 -05:00
matildepark
000e94e588
Merge pull request #4321 from tylershuster/hark/dm-layout-fix
fixes urbit/landscape#252
2021-01-21 18:01:53 -05:00
matildepark
84d23a9308
Merge pull request #4239 from urbit/m/graph-join-backoff
graph: make the join thread back off
2021-01-21 13:27:59 -05:00
Tyler Brown Cifu Shuster
61ec3bb2cf fixes urbit/landscape#252 2021-01-21 07:59:40 -08:00
Liam Fitzgerald
2decc24286
interface: bump indigo 2021-01-21 12:24:19 +10:00
Liam Fitzgerald
85a5488332
AsyncButton: protect against double submit 2021-01-21 11:44:22 +10:00
Liam Fitzgerald
9424e56827
graph-api: prevent more than one join request 2021-01-21 10:46:04 +10:00
Liam Fitzgerald
3bf03ffc9b
graph-join: crash on backoff and fix scry mold 2021-01-21 10:43:25 +10:00
Matilde Park
2df7c62a33 landscape: sidebar header item center, padded
Fixes urbit/landscape#257.
2021-01-20 18:45:07 -05:00
Matilde Park
3418b0f6e6 Merge branch 'release/next-js' into lf/infinite-link-scroll 2021-01-20 18:05:03 -05:00
Ted Blackman
6234b56ac1 ames: cache message +jam in +on-memo 2021-01-20 15:29:45 -05:00
Matilde Park
fb1e4033d7 landscape: font + padding hotfix
- Channel Settings size
- Padding on channel header
2021-01-20 13:27:27 -05:00
matildepark
a4155c2e6b
Merge pull request #4289 from urbit/mp/chat/newlines
chat: allow line breaks in markdown
2021-01-19 21:19:16 -05:00
janeway-bot
0fc5c4ef53
Merge 108a5f0de8 into release/next-js 2021-01-20 04:53:34 +04:00
Liam Fitzgerald
69a5675a86
graph-store: log %add-graph
When a graph is joined, the subscriber receives an %add-graph update
that corresponds to the current state of the graph. This was not logged,
so if the graph did not recieve any updates before the subscription was
kicked, the whole graph would be have to be sent again. This would be
largely asymptomatic, however hark-store assumes that %add-graph will
only be emitted when a new graph is joined or created. As such, we log
this initial update, so that the push-hook can correctly ascertain the
backlog it needs to send and so %add-graph is only emitted once per
graph. This also opens the door for time-varying scries into
graph-store.

Fixes #4290
2021-01-20 10:52:19 +10:00
Matilde Park
6363868731 publish: step up font size in titles 2021-01-19 16:25:36 -05:00
Matilde Park
1f7348ab6c publish: move 'new post' to header 2021-01-19 16:24:21 -05:00
Matilde Park
904ba113b7 author: increase font size 2021-01-19 15:54:07 -05:00
Matilde Park
4eb3a5ffdf statusbar: remove patp 2021-01-19 15:51:34 -05:00
Matilde Park
3f8de9a701 leap: correct font sizing of input 2021-01-19 15:47:30 -05:00
Matilde Park
392bccc6a8 launch: prevent modal button size overflow 2021-01-19 15:46:23 -05:00
Matilde Park
22f7754583 landscape: step up font size in channel header 2021-01-19 15:44:42 -05:00
Matilde Park
d0a276fd43 chat: add editor padding on mobile 2021-01-19 15:44:20 -05:00
Matilde Park
7ba6efbca2 publish: prevent 'new post' squash 2021-01-19 15:30:35 -05:00
Matilde Park
6ce130176a links: equalise font size, fix dropdown width 2021-01-19 15:28:43 -05:00
Matilde Park
ed2b350b2f profile: widen sidebar 2021-01-19 15:24:55 -05:00
Matilde Park
f5344efade landscape: widen popover menu 2021-01-19 15:22:55 -05:00
Matilde Park
6790664b2b sidebar: level padding-right 2021-01-19 15:20:30 -05:00
Matilde Park
2ea9b48ecb groupSwitcher: prevent text clipping 2021-01-19 15:19:40 -05:00