[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using emacs to view scrollback-buffer (from gnu-screen)

From: Hugo Heden
Subject: Using emacs to view scrollback-buffer (from gnu-screen)
Date: Sun, 22 Feb 2009 20:32:21 +0100

Good day all,

I am trying to write a little script that in certain situations lets
emacs show a file containing a scrollback-buffer. I am using emacs
with multi-tty support ("emacs --version" yields "GNU Emacs"). There's a daemon running ("emacs --daemon"), so I thought
it might be quick enough to view the scrollback buffer with
"emacsclient -t <file>". I am experimenting with gnu-screen, , and  would like to use
"emacsclient -t" to view, and get keyboard access to, the scrollback
buffer (with emacs-style cursor navigation, copy/paste etc).

The buffer is written to a file, /tmp/screenscrollbackbuffer. I'd like
to do the following:

(A) make emacs show the file in read-only mode.

(B) have the cursor automatically moved to the end of the file at start-up.

(C) possibly have emacs starting with auto-revert-tail-mode or
auto-revert-mode enabled as well..

How do I do this? Can I configure this stuff on the command line? How?
Or should I write an .emacs-style configuration file that this scripts
somehow passes to emacsclient?

Best regards

Hugo Heden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]