Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Bertil Askelid
Thu, 02 May 1991 10:11
Automatic scrolling of sheel-mode screen?
Author: Bertil Askelid
Date: Thu, 02 May 1991 10:11
Date: Thu, 02 May 1991 10:11
10 lines
1097 bytes
1097 bytes
I have a buffer in shell-mode in its own Epoch screen, while I am editing another buffer in another Epoch screen. A background process is writing in the shell-mode screen. I wonder how I can make the shell-mode screen automatically scroll as it is filled with characters from the background process? -- Bertil Askelid ebubra@erix.ericsson.se
Re: Automatic scrolling of sheel-mode screen?
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads