Article View: gnu.epoch.misc
Article #2028Re: Automatic scrolling of sheel-mode screen?
From: Alan M. Carroll
Date: Sat, 04 May 1991 15:50
Date: Sat, 04 May 1991 15:50
31 lines
1714 bytes
1714 bytes
In article <1991May2.101109.14087@eua.ericsson.se>, ebubra@erix.ericsson.se (Bertil Askelid) writes:
>
>
>I wonder how I can make the shell-mode screen automatically scroll as it is
>filled with characters from the background process?
Here is some code we use to do that:
;;; ----------------------------------------------------------------------
(defun scroll-process-output (process data)
(princ data (process-mark process))
(let ( (win (epoch::get-buffer-window (process-buffer process))) )
(if (not (eq win (selected-window)))
(set-window-point win (process-mark process))
)))
(defun scroll-this-process-buffer ()
(interactive)
(set-process-filter
(get-buffer-process (current-buffer)) 'scroll-process-output
)
(if (not epoch::global-update) (setq epoch::global-update t))
(epoch::set-update t)
)
--
Alan M. Carroll <-- Another victim of applied metaphysics
Epoch Development Team
Urbana Il. "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID:
<1991May4.155021.2344@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!m.cs.uiuc.edu!uiucdcs!carrollReferences:
<1991May2.101109.14087@eua.ericsson.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,a319d294f3f6bba7 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-05-05 05:06:29 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: gnu.epoch.misc Subject: Re: Automatic scrolling of sheel-mode screen? Message-ID: <1991May4.155021.2344@m.cs.uiuc.edu> Date: 4 May 91 15:50:21 GMT References: <1991May2.101109.14087@eua.ericsson.se> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Organization: Technophiles Inc. - Engineers with Attitude Lines: 31 Nntp-Posting-Host: ash.cs.uiuc.edu