Re: Command-line copy-paste?

2010-12-16 Thread Dan Mahoney, System Admin
On Thu, 16 Dec 2010, Yang Zhang wrote: Is there any way to pipe some content into screen's copy-paste buffer? Thanks! Yes, you can use the "bufferfile" command to set it to an arbitrary textfile, and "readbuf" to effectively do a "copy". You may also find useful: I have some switches with a

Re: how to change to screen num bigger than 9

2010-01-27 Thread Dan Mahoney, System Admin
On Wed, 27 Jan 2010, Albert Vilella wrote: Hi, How do I switch to a screen number bigger than 9? Say if I have screens 0,1,2,3,4,5,6,7,8,9,10...20, how can I do Ctrl-a "go to screen 15"? Any of the following: 1) Using ctrl-a n to go past 9. 2) Using ctrl-a " to show a list fo all your windo

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
On Tue, 2 Jun 2009, Asif Iqbal wrote: On Tue, Jun 2, 2009 at 5:07 PM, Dan Mahoney, System Admin wrote: On Tue, 2 Jun 2009, Asif Iqbal wrote: On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin wrote: On Tue, 2 Jun 2009, Asif Iqbal wrote: This is what I have done on the screen

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
On Tue, 2 Jun 2009, Asif Iqbal wrote: On Tue, Jun 2, 2009 at 4:44 PM, Dan Mahoney, System Admin wrote: On Tue, 2 Jun 2009, Asif Iqbal wrote: This is what I have done on the screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; the

Re: Dynamic Title

2009-06-02 Thread Dan Mahoney, System Admin
On Tue, 2 Jun 2009, Asif Iqbal wrote: This is what I have done on the screen server to achieve dynamic title. in .bashrc : PROMPT_COMMAND='if [ $TERM = "screen" ]; then printf "\033k${HOSTNAME%%.*}\033\\" ; fi' in .ssh/config : # this won't work unless your screen server has openssh 5.1 or ab

More Mouse Info

2009-06-02 Thread Dan Mahoney, System Admin
The more apps I'm trying, the more I'm finding that I get perfect mouse support if I set my TERM within screen to "xterm", but with screen's default term and termcap, I can't seem to get it working. I've added: termcapinfo xterm Km=\E[M to my .screenrc, but it doesn't seem to help. (That is

Re: Mouse support document

2009-06-01 Thread Dan Mahoney, System Admin
On Sat, 30 May 2009, Trent W. Buck wrote: "Dan Mahoney, System Admin" writes: I'm trying to write a generalized sum-up of which terminal-mode apps support mice and how well, as well as a general summary of how it works and why, since it's been a bit of an enigma to me f

Mouse support document

2009-05-30 Thread Dan Mahoney, System Admin
All, I'm trying to write a generalized sum-up of which terminal-mode apps support mice and how well, as well as a general summary of how it works and why, since it's been a bit of an enigma to me for a while. I had a scrollmouse work on me unexpectedly today, so I'm feeling rather inspired t

Odd "backspace" behavior (SOLVED)

2009-05-29 Thread Dan Mahoney, System Admin
All, I had an issue a few months ago, I previously had the issue described here... http://www.mail-archive.com/screen-users@gnu.org/msg02218.html I traced it a bit more, and the multiple-of-8 issue (which I somehow recall being an issue on other systems) didn't seem to be the case. What I

Multiple Screen FAQ's

2009-05-29 Thread Dan Mahoney, System Admin
All, I see a couple of screen faqs on the web. A rather sparse one at aperiodic.net, as well as one here: http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html I'd like to take the time to put some of this info into the current faq (it is a wiki after all) but I'm not sure how mu

Re: how to kill some borked elements in screen

2009-05-28 Thread Dan Mahoney, System Admin
On Thu, 28 May 2009, Chris Jones wrote: My screen ctrl-a ? shows that both k and K are kill -- is this the same for you? If so, where's it defined? If I do the following: $ touch /tmp/screenrc $ screen -c /tmp/screenrc the outcome is that Ctrl-a ? now displays: kill ^K k Presumably these

Re: how to kill some borked elements in screen

2009-05-28 Thread Dan Mahoney, System Admin
On Thu, 28 May 2009, Chris Jones wrote: On Thu, May 28, 2009 at 12:38:51PM EDT, Dan Mahoney, System Admin wrote: On Thu, 28 May 2009, Albert Vilella wrote: Hi, I've got a screen session with about a dozen of terminals, and a couple of them are basically unresponsive. I can naviga

Re: how to kill some borked elements in screen

2009-05-28 Thread Dan Mahoney, System Admin
On Thu, 28 May 2009, Albert Vilella wrote: Hi, I've got a screen session with about a dozen of terminals, and a couple of them are basically unresponsive. I can navigate to them in screen, but they don't respond. Is there a way to kill them or hide them so that they don't show up when navigat

Mouse support in Finch?

2009-05-21 Thread Dan Mahoney, System Admin
My mouse works in finch without screen, breaks under screen. They offer this support: http://developer.pidgin.im/wiki/Using%20Finch#mouse-in-screen But I can't use it as I'm not on a terminfo-based system. I see there's a bug kinda-sorta open on this already: https://savannah.gnu.org/bugs/?24

Odd "backspace" behavior?

2009-01-19 Thread Dan Mahoney, System Admin
Hey all, I've currently got my prompt set like so: if ($TERM == "screen") then #alias precmd'printf "\033%s%s %s\033\\" "k" "tcsh" "[$HOST]"' set prompt="%{\ek%}tcsh [$HOST] %{\e\\%}\%" alias postcmd 'printf "\033%s%s %s %s\033\\" "k" "\!#:0" "\!#:$" "[$HOST]"' endif what I notice, howev

Re: screen -X

2008-12-06 Thread Dan Mahoney, System Admin
On Sat, 6 Dec 2008, Micah Cowan wrote: Which reminds me -- in looking for docu on this subject and others, I found the gnu.org screen page, and the only thing there is links to the mailing list. Are there no official web-docs? FAQs? Or are they all maintained externally? There ought to be,

Re: screen -X

2008-12-04 Thread Dan Mahoney, System Admin
On Fri, 5 Dec 2008, Michael Grant wrote: On Fri, Dec 5, 2008 at 1:12 AM, Pia Mikeal <[EMAIL PROTECTED]> wrote: On Fri, 5 Dec 2008, Trent W. Buck wrote: In general, you are *much* better off dealing with clusters -- and even heterogeneous networks -- using a declarative tool like puppet or cfe

Re: Raggle

2008-12-04 Thread Dan Mahoney, System Admin
On Thu, 4 Dec 2008, Pia Mikeal wrote: On Thu, 4 Dec 2008, Dan Mahoney, System Admin wrote: On Thu, 4 Dec 2008, Micah Cowan wrote: That's part of it, my .cshrc contains: if ($TERM == "screen") then alias precmd'printf "\033%s%s %s\033\\" "k" &

Re: Raggle

2008-12-04 Thread Dan Mahoney, System Admin
On Thu, 4 Dec 2008, Micah Cowan wrote: Dan Mahoney, System Admin wrote: Is it possible to define "viewer" commands in Alpine that would do either of the following: 1) Launch in a separate window and/or 2) set the title correctly? Right now, my shell seems to step in and want to set

Raggle

2008-12-04 Thread Dan Mahoney, System Admin
Raggle is an awesome RSS feed reader that I've recently discovered, that does something rather nice, it embraces the concept of screen. That is to say, if I open a new article or link, it will open in a new screen in "links". Many of you probably already know this. However, there's a bit I'm

Is it something I said? re:locking

2008-11-30 Thread Dan Mahoney, System Admin
All, I apologize if I've argued a bit fervently in the past for what I felt was a simple feature (i.e. support for screen to also use the "attach" password as a "lock" password on systems that do not support either pam or getpass() and thus have no way of knowing what password to otherwise use

Re: `open` command on Mac OS

2008-11-20 Thread Dan Mahoney, System Admin
On Tue, 18 Nov 2008, Joseph Lorenzo Hall wrote: Hi, this is going to be probably the n00best of newbie questions... but I couldn't figure it out after considerable effort: I'm running screen on Mac OS X in an X11 terminal window. However, when I use the Mac OS X shell command `open`, it doesn'

Re: Bigger annoyance with locking.

2008-11-20 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Andrew Deason wrote: On Thu, 13 Nov 2008 22:41:02 -0500 (EST) "Dan Mahoney, System Admin" <[EMAIL PROTECTED]> wrote: On Fri, 14 Nov 2008, Trent W. Buck wrote: Do you dispute this? Can you provide a concise explanation of why PAM is not sufficient?

Re: Bigger annoyance with locking.

2008-11-16 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Andrew Deason wrote: On Thu, 13 Nov 2008 22:41:02 -0500 (EST) "Dan Mahoney, System Admin" <[EMAIL PROTECTED]> wrote: On Fri, 14 Nov 2008, Trent W. Buck wrote: Do you dispute this? Can you provide a concise explanation of why PAM is not sufficient?

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Thu, 13 Nov 2008, Dan Mahoney, System Admin wrote: Concise: Because not all systems have PAM, and some of those lack standard getpw* interface to get the encrypted password. Heck, in some there IS no password. Detailed: Kerberos and ssh-keys are two such examples. I am sure there'

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Trent W. Buck wrote: On Thu, Nov 13, 2008 at 10:08:50PM -0500, Dan Mahoney, System Admin wrote: But you've stated that with pam in the mix and a "null" password, you basically get it accepting any password. So you too, are an audience for the "k

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Trent W. Buck wrote: On Thu, Nov 13, 2008 at 09:04:25PM -0500, Dan Mahoney, System Admin wrote: It asks for *both* the login password and the screen session password. Yes, and the point is: I don't have a login password, so upon "locking" I am given the

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Trent W. Buck wrote: On Thu, Nov 13, 2008 at 08:21:38PM -0500, Dan Mahoney, System Admin wrote: Sadly, even though I am root on the systems involved -- the tweak we really need here is extending screen's builtin lock to support the password stored in .screenrc Clea

Re: Silly question about "lock"

2008-11-13 Thread Dan Mahoney, System Admin
On Wed, 12 Nov 2008, Micah Cowan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Mahoney, System Admin wrote: hey, is there a way to customize the message displayed on the "lock", for example: Whether it was locked by time, or idle? What time it was locked? What HOST it&#x

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Fri, 14 Nov 2008, Trent W. Buck wrote: "Dan Mahoney, System Admin" <[EMAIL PROTECTED]> writes: The question comes up: "if I can get at your uid, why do I need your screen?" In order to observe the output when I run "gpg -d" on an encrypted, confid

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Thu, 13 Nov 2008, Micah Cowan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Mahoney, System Admin wrote: On Thu, 13 Nov 2008, Trent W. Buck wrote: Micah Cowan <[EMAIL PROTECTED]> writes: Dan Mahoney, System Admin wrote: According to the manpage, screen calls /bin/l

Re: Bigger annoyance with locking.

2008-11-13 Thread Dan Mahoney, System Admin
On Thu, 13 Nov 2008, Trent W. Buck wrote: Micah Cowan <[EMAIL PROTECTED]> writes: Dan Mahoney, System Admin wrote: According to the manpage, screen calls /bin/lock or whatnot -- there's no way through .screenrc to change this (why?)...and yet the output of a locked screen looks si

Bigger annoyance with locking.

2008-11-12 Thread Dan Mahoney, System Admin
I am on a system at work where all our passwords are kerberized, and the password field in my account is "*" Thus, when locking screen, it asks for a key. Now, interestingly enough, it would be rather trivial for a locked screen to use its internal locking tool, and just use the password I've

Silly question about "lock"

2008-11-12 Thread Dan Mahoney, System Admin
hey, is there a way to customize the message displayed on the "lock", for example: Whether it was locked by time, or idle? What time it was locked? What HOST it's running on? These would all be great useful tunables. -Dan -- unless is a pr0no book he wont even come close to the bandwidth quo

Apps creating new windows?

2008-07-28 Thread Dan Mahoney, System Admin
Hey all, Is there ANY implementation at all, for when an app is running under screen, for it to be able to launch a "new window" (for example, to view an attachment in pine, to start a /query in irc, to view a file in MC)... I'm not asking if this functionality exists in those programs, but i

Re: Two little features (and a bounty?)

2008-07-25 Thread Dan Mahoney, System Admin
On Fri, 25 Jul 2008, Micah Cowan wrote: Yes, I'm top-posting...but it's relevant. So from Micah's findings, it would almost appear that based on the application, there's a number of things that one needs to do to make this work. (xterm value, fake display, manually send the escape sequence,

Re: Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
On Thu, 24 Jul 2008, Micah Cowan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Mahoney, System Admin wrote: That's unlikely to be true. The applications on the other end of the SSH tunnel requested the click events, first (based on the TERM env var having something like "

Re: Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
On Thu, 24 Jul 2008, Micah Cowan wrote: Is there a way to trace if this is happening? I've given you the applications I use. Micah, I've been a user and advocate of wget for many years. If you would like a shell, please let me know. Well, if you activate logging in the screen window, you ca

Re: Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
On Fri, 25 Jul 2008, Trent W. Buck wrote: On Thu, Jul 24, 2008 at 06:39:47PM -0400, Dan Mahoney, System Admin wrote: I need two features added to screen, but I'm not a coder. I can (and have) discussed on this list, as well as having seen these features justified and explained on ma

Re: Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
On Thu, 24 Jul 2008, Micah Cowan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Perhaps he's referring to the fact that it won't work until the application requests mouse tracking, and several applications don't request mouse tracking from screen. Is there a way to trace if this is happ

Re: Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
x27;t in either Alpine or Nano, both of which otherwise support it. Unlike printing, I don't know what terminal codes to look for to know if the mouse is supported. -Dan On Thu, Jul 24, 2008 at 5:39 PM, Dan Mahoney, System Admin <[EMAIL PROTECTED]> wrote: Hey all, I n

Two little features (and a bounty?)

2008-07-24 Thread Dan Mahoney, System Admin
Hey all, I need two features added to screen, but I'm not a coder. I can (and have) discussed on this list, as well as having seen these features justified and explained on mailing lists before, but I don't believe they work at this time. 1) Make printing work. And by that I mean make it w

Re: "Parallel mode" for GNU Screen?

2008-06-03 Thread Dan Mahoney, System Admin
On Tue, 3 Jun 2008, Ethan Mallove wrote: Look into a program called "omnitty". -Dan Hi, Is there a "parallel mode" of some sort to make Screen copy commands from one window into other windows? I'm seeking an alternative to the "at" command. I'm basically looking for behavior in Screen that w

GNU Screen and Monitor mode with ircII

2008-06-02 Thread Dan Mahoney, System Admin
Hey all, I get frequent updates with ircII when using "Monitor" in gnu screen. I get this even when I disable the clock in ircII -- apparently it still does *something* to update the screen. Has anyone else noticed this? And/or found a fix? -Dan -- Dan Mahoney Techie, Sy

Re: Logging in screen

2007-12-13 Thread Dan Mahoney, System Admin
On Thu, 13 Dec 2007, [EMAIL PROTECTED] wrote: On Thu, Dec 13, 2007 at 10:11:20AM +, jan wrote: I am trying to do something that I can't quite get my head around; I hope that somebody with more experience can help me. This is what I try to do: I have a large number of serial ports attache

How to send commands to screen from within scripts)

2007-10-29 Thread Dan Mahoney, System Admin
Hey all, As part of a shellscript, I would like to run a series of commands that involve doing a "slow paste". The commands for this are: bufferfile /home/danm/summit48.cfg slowpaste 120 readbuf paste . Is there a way to have screen not launch a new session, but instead interpret screen-com

Disable printcmd buffering

2007-10-25 Thread Dan Mahoney, System Admin
Can someone PLEASE add an extension to the "printcmd" that disables the buffering? This should in theory be EASIER to code than what's in place now. Just don't intercept the escape sequences, send them through as-is, and we, as screen users, will agree not to navigate out of the app window do

Printing support

2007-09-28 Thread Dan Mahoney, System Admin
Can someone please tell me how I can get a patch that disables screen's "buffered" printing (or better still, that makes it a user-selectable option). I'm willing to contribute to the coder who can do it. I wrote a much longer post about this but guess people tl;dr'd -Dan -- "You recreate t

Printing support (Docs and requests for code changes).

2007-09-25 Thread Dan Mahoney, System Admin
I've just done quite a lot of research into how to get screen to gracefully handle printing, and I would like to suggest that there should be some changes made to screen, and/or the docs. Screen specifically depends on whether or not the connecting terminal has a printer defined by looking at

Re: Can a program create a new window ?

2005-11-08 Thread Dan Mahoney, System Admin
On Tue, 8 Nov 2005, Phil!Gregory wrote: * Michael C. Toren <[EMAIL PROTECTED]> [2005-11-08 01:29 -0500]: ircii (and epic, bitchx, and friends) create multiple windows using the curses library; screen isn't involved in any way. epic also supports what it calls screens -- completely separate di

Re: Can a program create a new window ?

2005-11-08 Thread Dan Mahoney, System Admin
On Tue, 8 Nov 2005, Nicolas Vigier wrote: Dan Mahoney, System Admin said: On Tue, 8 Nov 2005, Michael C. Toren wrote: On Mon, Nov 07, 2005 at 07:25:30PM -0500, Phil!Gregory wrote: it might not have had anything to do with the screen interface. ircii (and epic, bitchx, and friends) create

Re: Can a program create a new window ?

2005-11-08 Thread Dan Mahoney, System Admin
On Tue, 8 Nov 2005, Michael C. Toren wrote: On Mon, Nov 07, 2005 at 07:25:30PM -0500, Phil!Gregory wrote: it might not have had anything to do with the screen interface. ircii (and epic, bitchx, and friends) create multiple windows using the curses library; screen isn't involved in any way.

screen flags

2005-08-29 Thread Dan Mahoney, System Admin
Maybe I'm clueless, but is there a list of what the "short" flags are in the windowlist? *, $, etc? I can't find them with a casual grep for "flags", and grepping for the flags themselves is bad. -Dan -- "If you need web space, give him a hard drive. If you need to do something really hea

Re: shelltitle, window titling

2005-08-29 Thread Dan Mahoney, System Admin
On Thu, 25 Aug 2005, Phil!Gregory wrote: * Dan Mahoney, System Admin <[EMAIL PROTECTED]> [2005-08-25 13:25 -0400]: Is there any way to have command options included for certain commands? i.e. to have some sort of script or regex look allow me to have ssh:[EMAIL PROTECTE

Re: shelltitle, window titling

2005-08-25 Thread Dan Mahoney, System Admin
On Thu, 25 Aug 2005, Phil!Gregory wrote: * Dan Mahoney, System Admin <[EMAIL PROTECTED]> [2005-08-25 13:25 -0400]: Is there any way to have command options included for certain commands? i.e. to have some sort of script or regex look allow me to have ssh:[EMAIL PROTECTE

Re: shelltitle, window titling

2005-08-25 Thread Dan Mahoney, System Admin
On Thu, 25 Aug 2005, Aaron Griffin wrote: On 8/25/05, Dan Mahoney, System Admin <[EMAIL PROTECTED]> wrote: My question is this: Is there any way to have command options included for certain commands? i.e. to have some sort of script or regex look allow me to have ssh:[EMAIL PROTECTE

shelltitle, window titling

2005-08-25 Thread Dan Mahoney, System Admin
Hey all, I've got screen auto-titling my windows with the following prompt: set prompt="%{\ek\e\\%}\%" and the shelltitle "%|csh" option in my .screenrc (I run tcsh) My question is this: Is there any way to have command options included for certain commands? i.e. to have some sort o

Re: Am I running under X?

2005-07-28 Thread Dan Mahoney, System Admin
On Thu, 28 Jul 2005 [EMAIL PROTECTED] wrote: How can I tell if I'm running under X in a shell script? If I'm in X, I want to start screen: screen -m -c /my/config/file. If I'm not under X, I want to start without the -m. It's an odd google to find the answer to this question, so your wisdom

Printing from within applications.

2005-07-24 Thread Dan Mahoney, System Admin
Hey all. One of the features I find I use is the ability to print within pine, to a local printer. Lynx has this option as well, but of course, it's a little silly there. This works totally well when running under a non-screen session. Under screen, it breaks down, and doesn't trigger anythi

Re: Locking screen

2005-06-28 Thread Dan Mahoney, System Admin
x27;s a bit of a misnomer that I'm not unlocking an attached session, I'm actually unlocking screen which will then restore a detached session on its own and failing that, drop me at a prompt. I guess what would be neatest is some sort of "kill parent shell on exit" function

Locking screen

2005-06-27 Thread Dan Mahoney, System Admin
Hey all, I'm having an issue of minor annoyance with screen and idle locking. I've got "idle 600 lockscreen" set in my .screenrc I also have a "password teH0wLIpW0gyQ" set (that's test, crypted). My problem is when the screen autolocks, it first asks me for my login password (I assume it's cal