mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 23:48:22 +03:00
switches drum to a sticky prompt, scrolling input only
This commit is contained in:
parent
3d8d499311
commit
74f32a67dd
@ -408,10 +408,14 @@
|
||||
+>(mir lin)
|
||||
::
|
||||
++ se-just :: adjusted buffer
|
||||
|= lin/(pair @ud stub)
|
||||
|= {pom/stub lin/(pair @ud (list @c))}
|
||||
^+ +>
|
||||
=. off ?:((lth p.lin edg) 0 (sub p.lin edg))
|
||||
(se-show (sub p.lin off) (scag:klr edg (slag:klr off q.lin)))
|
||||
=/ pol (lent-char:klr pom)
|
||||
=/ end (sub edg pol)
|
||||
=. off ?:((lte p.lin end) 0 (sub p.lin end))
|
||||
%+ se-show
|
||||
(sub (add pol p.lin) off)
|
||||
(welp pom [*stye (swag [off end] q.lin)]~)
|
||||
::
|
||||
++ se-view :: flush buffer
|
||||
^+ .
|
||||
@ -819,11 +823,9 @@
|
||||
(ta-hom (cat:edit pos.inp txt))
|
||||
::
|
||||
++ ta-vew :: computed prompt
|
||||
^- (pair @ud stub)
|
||||
^- {pom/stub lin/(pair @ud (list @c))}
|
||||
=; vew/(pair (list @c) styx)
|
||||
=+ lin=(make:klr q.vew)
|
||||
:_ (welp lin [*stye p.vew]~)
|
||||
(add pos.inp (lent-char:klr lin))
|
||||
[(make:klr q.vew) pos.inp p.vew]
|
||||
?: vis.pom
|
||||
:- buf.say.inp :: default prompt
|
||||
?~ ris
|
||||
|
Loading…
Reference in New Issue
Block a user