October 30th, 2004 - Open Knowledge — LiveJournal
Oct. 30th, 2004
01:41 pm - Screen and Mac OS X terminal.app
[According to a response to my query by Phil Gregory ( November 7th, 2004, email@example.com), screen is using Terminal.app's alternate buffer. Gregory suggested adding the following to my .screenrc:
termcapinfo xterm* ti@:te@
I did so, and it fixed both of the problems below.]
A question for the LJ brain trust:
I frequently ssh into a remote machine at work from my machine at home (both running Mac OS 10.3.5). I often have to copy and paste error messages in the log files on the remote machine into my mail program (Mail.app) on my local machine. If the text I want to copy is longer than the size of my Terminal window, I highlight the text in the Terminal buffer by scrolling up the screen. When I paste the copied text into Mail.app, the formatting (returns, indenting) of the message is preserved.
However, in order to avoid having to restart all of the processes I'm working on if I get disconnected, I've started running screen on the remote machine. If I run screen, only the text that's visible in the terminal window can be highlighted. In addition, if I copy the text in the screen window into my mail program, I lose the formatting, and it becomes an unreadable mash.
1. Is there a way to set up screen so that I can scroll further back (via Terminal) in it's history?
2. Is there a way I can change screens settings, so that the formatting of text copied from screen is preserved?
I've looked in the user manual linked above, and there are several possible variables I could change. Before I start going through them, I thought I would ask here in case someone knows where I should be looking. Thanks!
|← Previous day||(Calendar)||Next day →|