[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can shell mode keep a log?
From: |
Samuel Wales |
Subject: |
Re: can shell mode keep a log? |
Date: |
Sat, 10 Sep 2022 19:08:44 -0700 |
comint scrolls off top. would auto save mode take that into account?
idk about shell-mode-hook, but i was thinking
comint-preoutput-filter-functions would maybe allow saving each set of
output [idk if per chunk of output or per prompt pair], but this
definitely seems like a feature only i need. :/
On 9/9/22, James Thomas <jimjoe@gmx.net> wrote:
> Samuel Wales wrote:
>
>> i need ti to be automatic, for the entire shell session, for all
>> comand including prompts, sort of like typescrpt ut that would likely
>> have issues i am unware of such as commands outputtig to termianl or
>> osehting.
>
> You can enable auto-save-mode in the shell buffer. Make sure to read the
> manual about the options to control its application.
>
>> soign write-file is good for manual saves and i should remember it
>> morel although i think that changes the visited filename or so. but
>> it is not the automatic solution i am looking or. i want a log of the
>> session.
>
> Once you use write-file, from then on, auto-save-mode is enabled in it
> by default.
>
>> iow a complete history o the shell sessions in my shell buffers, saved
>> continuously or continually to files efficiently.
>
> You can probably use shell-mode-hook to do one of the above in all such
> buffers.
>
> --
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
Re: can shell mode keep a log?, Emanuel Berg, 2022/09/16