Fix where Edwin leaves the cursor in console-screens.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 20 Aug 2009 01:32:07 +0000 (18:32 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 20 Aug 2009 01:32:07 +0000 (18:32 -0700)
commita6171685f6a9811a33c156c2a4dadeac62eab795
tree9f9c34f2de730c8a83b91272e0c06f23c192459b
parent31856b489b802c7f534678ef3e925c43b9c5a3a0
Fix where Edwin leaves the cursor in console-screens.

toggle-read-only and the set-mark-command leave the terminal's cursor
in the modeline or minibuffer (respectively).

* src/edwin/buffrm.scm (window-direct-output-cursor!): New procedure.

* src/edwin/bufwiu.scm (buffer-window/direct-output-cursor!): New procedure.

* src/edwin/edwin.pkg: Export window-direct-output-cursor! to (edwin)
for screen code like console-wrap-update!.  Export
editor-frame-cursor-window to (edwin screen) for screen-cursor-window.

* src/edwin/screen.scm (screen-cursor-window): New procedure.

* src/edwin/tterm.scm (console-wrap-update!): Leave the terminal's
cursor in the screen-cursor-window.
(output): Do not die when screen-cursor-y is still #f -- found when
interpreting Edwin.
src/edwin/buffrm.scm
src/edwin/bufwiu.scm
src/edwin/edwin.pkg
src/edwin/screen.scm
src/edwin/tterm.scm