osdir.com
mailing list archive

Subject: Re: Scrolling, copying in Mac OS X - msg#00049

List: gnu.screen.user

Date: Prev Next Index Thread: Prev Next Index
* Christopher rasch <crasch-bfgWZFCgRu6hjvkaKRm3DNi2O/JbrIOy@xxxxxxxxxxxxxxxx>
[2004-11-05 12:43 -0500]:
> 1. Is there a way to set up screen so that I can scroll further back
> (via Terminal) in it's history?

screen is using Terminal.app's alternate buffer. To get scrollback
history, put this into your .screenrc:

termcapinfo xterm* ti@:te@

> 2. Is there a way I can change screens settings, so that the formatting
> of text copied from screen is preserved?

This I don't know. This should be up to your terminal,but I suppose it's
possible tht screen is telling it to do things with the text layout.

--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
Attempt to free unreferenced scalar during global destruction.
-- perl error message
---- --- --


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: new window

Hello Neszt Tibor wrote... > It is ok. My question is, can I run more command sequentially? For > exmaple, bash, ls, df -k, .... > > Would be good: > > screen -t title_of_window_0 0 bash, df -k, finger Would you like to operate interaction shell after executing df and finger? if yes, you had better use bellow line screen -t title_of_window_0 0 bash -c 'df -k;finger;exec bash' enjoy -- DEKAINO project Shigehiko SASAKI ssasaki-Cr2+elzps7jR7s880joybQ@xxxxxxxxxxxxxxxx / JS1DSC

Next Message by Date: click to view message preview

Re: new window

Neszt, screen -t title_of_window_0 0 bash, df -k, finger screen -t title_of_window_0 0 bash -c 'df -k;finger;exec bash' Alternatively (assuming we're talking about a .screenrc here as opposed to just typing at screen's colon prompt), you could use the stuff command: screen -t title_of_window_0 0 bash stuff "df -k\015" stuff "finger\015" Of course you could jam it all into one "stuff" if you prefer, but I usually break it up by commands. The advantage here would be that you do more than just run commands: screen -t notes stuff "vi ~/notes\015" stuff "Go\033!!date\015ZZ" Although one thing I _haven't_ ever been able to make work is something like: screen -t neptune ssh neptune stuff "mysecretpassword\015" and if anyone knows how to make that happen, I'd sure appreciate it. -- Buddy

Previous Message by Thread: click to view message preview

Re: Scrolling, copying in Mac OS X

You can scroll back in screen, after reattaching, by using the key combo: Ctrl-A [ Then you can arrow around or use Ctrl-B or Ctrl-F to page backward or forward. You can use Esc to exit the scrollback mode. That will at least get you back to previous output. As for loading that history into the terminal app, I don't know if that's possible. And on the formatting, it's hard to say without seeing what the problem is. Christopher rasch wrote: 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 (1) on the remote machine. Unfortunately, if I run screen, only the text that's visible in the terminal window can be highlighted--nothing in screens history seems to be visible to my local terminal. In addition, if I copy the text in the screen window into my mail program, I lose the space 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 below, 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! Chris (1) http://rucus.ru.ac.za/docs/screen/index.html#Top

Next Message by Thread: click to view message preview

hardstatus line / startup foo

Is there a way to make different color'd status lines and/or source different .bashrc files when I create a new screen? Like screen 0 has a white status line, screen 1 is blue and screen0 sources .bashrc0, etc... Or should I just create a mega startup script that does all this? If this is possible, do you guys have an example of how do this? Tony
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by