Hi, Tamas Papp <tkp...@gmail.com> writes: >> What I miss from the ansi-term is that I cannot keep the whole >> interaction in the buffer, which I grew accustomed to rely on when >> running a regular shell inside Emacs. To illustrate, when running >> something that generates a lot of output inside ansi-term, this gets >> truncated, as you can see below, where the output starts with >> -----0.1-----, etc., but most of the output is gone and only the last >> parts remain (so I end up having a regular shell for long outputs and an >> ansi-term for nice REPL interaction, but obviously it is not ideal). If >> julia-repl solves that I'll buy it. :-) > > julia-repl can either use screen or not. With screen, you cannot scroll > back beyond point. Without screen, you can --- I clarified it in the > README and made it the default -- thanks!
Our exchange piqued my interest so I looked for how to do it from within GNU screen. It turns out screen has options that will allow you to do it: Inside the ansi-term and screen, if I want to scroll back: - To see the buffer settings: Ctrl-a i - To increase the screen buffer size: Ctrl-a : and then type scrollback 10000 - To scroll the buffer Ctrl-a [ then scroll and then ESC to stop copy-mode - To search Ctrl-a Ctrl-s (forward) Ctrl-r (backwards). ESC to quit search mode and keep cursor in the place of search. - To copy stuff while in copy mode: SPC (mark begin) SPC (mark end). Then to copy it to another Emacs buffer ??? - Ctrl-a : then hardcopy -h <filename> will write the whole buffer content to <filename> which can then be used anywhere. Cheers, -- Ángel de Vicente http://www.iac.es/galeria/angelv/