switches drum to a sticky prompt, scrolling input only

This commit is contained in:
Joseph Bryan 2017-02-26 23:39:21 -05:00
parent 3d8d499311
commit 74f32a67dd

View File

@ -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