Proper value of $TERM for screen running in an xterm-256color terminal

2022-04-25 Thread Dun Peal
I'm wondering what the proper value of $TERM would be for screen running in a terminal which initially has its $TERM variable equal to "xterm-256color". Once I launch screen, $TERM becomes "screen", which seems to lack many capabilities, notably: applications don't consider it to be capable of disp

Compiling screen on macOS Monterey?

2022-04-19 Thread Dun Peal
I'm trying to compile screen on the latest macOS Monterey, but the `./configure` step fails with the following error: configure: checking select... configure: checking select with -lnet -lnsl... configure: error: !!! no select - no screen Does anyone know how to fix this? Incidentally, my prima

Re: Delay when closing a window after starting a background process

2018-07-15 Thread Dun Peal
Bob Proulx wrote: > sleep 100 >/dev/null 2>&1 /dev/null`, but they were still hanging the screen window, until adding the stdin redirection per your suggestion eliminated the problem. It's still a mystery as to why it's happening. I tried to reduce the `zombie_timeout` to small values like 0 an

Delay when closing a window after starting a background process

2018-07-13 Thread Dun Peal
This problem has been plaguing me for years now, and still now with the recent 4.6.2 release. Steps to reproduce: 1. Start a new screen session. 2. Create a new window. 3. Hit Ctrl-D. Window closes instantly. 4. Start another windows. 5. Run the following bash command: sleep 100 & 6. Hit Ctrl-D. W

Re: Making `escape Ctrl-n` switch to window n

2018-06-17 Thread Dun Peal
3 It seems that other terminal emulators, including xterm and urxvt, have the same or similar sets of default bindings, e.g. Ctrl-3 to ^[ and Ctrl-4 to \^ On Wed, Jun 13, 2018 at 3:32 PM, David Woodfall wrote: > On Wednesday 13 June 2018 14:21, > Dun Peal put forth the proposition: >&g

Making `escape Ctrl-n` switch to window n

2018-06-13 Thread Dun Peal
The problem is that my terminal maps Ctrl-n, for certain values of n, to various escape sequences. For example,Ctrl-3 generates ^[ (escape), so it enters Copy Mode instead of switching to window 3. Ctrl-4 genertes \^ (FS, which is interpreted as SIGQUIT). Etc. Is there a way to "unmap" combinat

Re: Escape + number performs actions other than switching to window by number

2018-06-01 Thread Dun Peal
Thanks! I filled out the list. Note that in some places I verified with `od -tx1 -An`, because just using Ctrl+v printed nothing visible on screen. On Thu, May 31, 2018 at 10:50 AM, Amadeusz Sławiński wrote: > On Thu, 31 May 2018 10:33:47 -0500 > Dun Peal wrote: > >> Hi Amad

Re: Escape + number performs actions other than switching to window by number

2018-06-01 Thread Dun Peal
^v or od) On Fri, Jun 1, 2018 at 10:26 AM, Dun Peal wrote: > Thanks! I filled out the list. Note that in some places I verified > with `od -tx1 -An`, because just using Ctrl+v printed > nothing visible on screen. > > On Thu, May 31, 2018 at 10:50 AM, Amadeusz Sławiński wrote: &g

Re: Escape + number performs actions other than switching to window by number

2018-05-31 Thread Dun Peal
). I can already tell you my terminal behaves slightly differently than yours - by contrast to you, my 0 doesn't work, whereas 2 and 8 do work, in addition to 1 and 9 that worked for you. On Thu, May 31, 2018 at 7:03 AM, Amadeusz Sławiński wrote: > On Tue, 29 May 2018 10:11:12 -0500 >

Re: Escape + number performs actions other than switching to window by number

2018-05-29 Thread Dun Peal
I make it work again? On Tue, May 29, 2018 at 10:11 AM, Dun Peal wrote: > Hi folks, > > I just upgraded to Ubuntu 18.04 from 16.04, and noticing an odd > behavior with the key combinations that used to switch windows by > number. > > In 16.04, if I held Ctrl and hit the esca

Escape + number performs actions other than switching to window by number

2018-05-29 Thread Dun Peal
Hi folks, I just upgraded to Ubuntu 18.04 from 16.04, and noticing an odd behavior with the key combinations that used to switch windows by number. In 16.04, if I held Ctrl and hit the escape key, and immediate after it a number key (without releasing the Ctrl), I was switched to that window numb

Re: #define TOPSTAT in Screen v.4.6.2 and newer

2018-05-29 Thread Dun Peal
Fri, 25 May 2018 09:58:47 -0500 > Dun Peal wrote: > >> Hi folks, >> >> I used to #define TOPSTAT in config.h to set the status line to render >> on the first line of the terminal rather than the last. >> >> It seems this incantation no longer works at least

Re: Trouble getting 256 mode working in latest Ubuntu

2018-05-25 Thread Dun Peal
Actually, I still see a few minor errors after installing `ncurses-term`. For example: "TERMCAP", line 20, col 1, terminal 'SC': Missing separator On Thu, May 24, 2018 at 6:46 PM, Dun Peal wrote: > Thanks, Axel. Installing ncurses-term (with `apt install ncurses-term`

#define TOPSTAT in Screen v.4.6.2 and newer

2018-05-25 Thread Dun Peal
Hi folks, I used to #define TOPSTAT in config.h to set the status line to render on the first line of the terminal rather than the last. It seems this incantation no longer works at least as of v.4.6.2. Is there an alternative new way to set the same configuration? Thanks, D. _

Re: Trouble getting 256 mode working in latest Ubuntu

2018-05-24 Thread Dun Peal
Thanks, Axel. Installing ncurses-term (with `apt install ncurses-term` on Ubuntu) fixed the issue immediately. Best, D. On Thu, May 24, 2018 at 6:39 PM, Axel Beckert wrote: > Hi, > > On Thu, May 24, 2018 at 04:53:32PM -0500, Dun Peal wrote: >> I recently upgraded to latest stabl

Trouble getting 256 mode working in latest Ubuntu

2018-05-24 Thread Dun Peal
Hi there, I recently upgraded to latest stable Ubuntu (18.04 LTS). Unfortunately, after building screen from source, 256 mode no longer seems to work. For example, if I launch vim, it reverts to the 8 color color scheme. This was a problem with both the 4.6.2 release (which appears to be the late

Re: Any difference between `screen -r` vs `screen -x` when attaching to an already attached session?

2016-07-05 Thread Dun Peal
On Tue, Jul 5, 2016 at 12:33 AM, Clark Wang wrote: > For a detached session I think `screen -r' and `screen -x' are doing the > same thing. > ​If that's the case, I'll just use `screen -x` always. This is because of my use-case: I am using this for a multiple display setup, where each display h

Re: Any difference between `screen -r` vs `screen -x` when attaching to an already attached session?

2016-07-04 Thread Dun Peal
x, since it attaches to the session whether it's detached or not. Hope my question is clear... D. On Mon, Jul 4, 2016 at 6:23 PM, Andrew Savchenko wrote: > Hi, > > On Mon, 4 Jul 2016 18:15:50 -0400 Dun Peal wrote: > > Looking for a command that would attach to a screen session

Any difference between `screen -r` vs `screen -x` when attaching to an already attached session?

2016-07-04 Thread Dun Peal
Looking for a command that would attach to a screen session "foo", wether it is detached or not. It seems like `screen -x foo` would do it - it attaches to "foo" in both cases. But is it really the same? Or is there any difference between `screen -x foo` and `screen -r foo` when "foo" is detached

Re: Error building on OS X El Capitan: utmp.c:384:5: error: no member named 'ut_exit' in 'struct utmpx'​

2016-04-05 Thread Dun Peal
> Hey, > > adding screen-users@gnu.org back to CC, because I lost it in last reply > > On Tue, 5 Apr 2016 14:36:44 -0400 > Dun Peal wrote: > > > This did fix the issue. I then got an error: > > > > pty.c:42:10: error: 'pty.h' file not found with inclu

Re: Error building on OS X El Capitan: utmp.c:384:5: error: no member named 'ut_exit' in 'struct utmpx'​

2016-04-04 Thread Dun Peal
r '_NSIG' for (sig = 1; sig < _NSIG - 1; sig++) ^ attacher.c:467:22: error: use of undeclared identifier '_NSIG' for (sig = 1; sig < - 1; sig++) { ^ 3 errors generated. make: *** [attacher.o] Error

Error building on OS X El Capitan: utmp.c:384:5: error: no member named 'ut_exit' in 'struct utmpx'​

2016-04-04 Thread Dun Peal
I'm trying to build Git HEAD of screen on OS X El Capital (latest version: 10.11.4) and getting the following error output - help appreciated: $ make AWK=gawk srcdir=. sh ./term.sh AWK=gawk CC="gcc -g -O2 -Wall -Wextra -std=c11" srcdir=. sh ./comm.sh gcc -c -iquote. -DETCSCREENRC='"/usr/local/etc

Re: Error building on OS X El Capitan: window.c:1078:6: error: conflicting types for 'execvpe'

2016-04-02 Thread Dun Peal
27; u->ut_exit.e_termination = 0; ~ ^ utmp.c:385:5: error: no member named 'ut_exit' in 'struct utmpx' u->ut_exit.e_exit = 0; ~ ^ utmp.c:406:9: warning: incompatible pointer to integer conversion returning 'char *' from a function

Error building on OS X El Capitan: window.c:1078:6: error: conflicting types for 'execvpe'

2016-04-01 Thread Dun Peal
Hi, I'm trying to build Git HEAD of screen on OS X El Capital (latest version: 10.11.4) and getting the following error output - help appreciated: $ make AWK=awk srcdir=. sh ./term.sh AWK=awk CC="gcc -g -O2 -Wall -Wextra -std=c11" srcdir=. sh ./comm.sh gcc -c -iquote. -DETCSCREENRC='"/usr/local/

Re: Defining custom screen commands?

2014-08-01 Thread Dun Peal
gt; And hit enter to execute. The command is actually a screen script stored >> at >> that location. So adding new commands is matter just of adding new script >> files. >> >> Here's the actual binding: >> bind ^L eval 'register z ":source /home/user/

Defining custom screen commands?

2014-07-31 Thread Dun Peal
Folks, There's a sequence of screen operations that I execute every once in a while. I can use `bind` and `eval` to execute it by keystroke, but it is not used commonly enough to justify a keystroke binding. Is there a way to define it such that I can execute it by running a custom command on the

Re: Can screen render hardstatus and messages in different lines in the terminal?

2011-05-09 Thread Dun Peal
Some digging on my own revealed the following chunk of code in `config.h`: /* * If you'd rather see the status line on the first line of your * terminal rather than the last, define TOPSTAT. */ /* #undef TOPSTAT */ct It moves both the hardstatus and the messages to the firs

Re: Can screen render hardstatus and messages in different lines in the terminal?

2011-05-06 Thread Dun Peal
On Fri, May 6, 2011 at 2:16 PM, Artur Skonecki wrote: > Currently, it is not possible to put hardstatus anywhere else than last Thanks. Since I can't move the hardstatus line, I'm now trying to prevent the clash by moving the message line to the top. The manpage says about it: While this lin

Can screen render hardstatus and messages in different lines in the terminal?

2011-05-06 Thread Dun Peal
Hi there, I currently use a nice configuration[1] that shows the permanent hardstatus in the xterm window titlebar, while messages are rendered on the last line. Unfortunately, that's not portable to pure console servers without X. When I move the hardstatus to the "message" area, it gets overwri

Spawning a detached screen session for the sole purpose of running an executable or shell-command?

2011-02-15 Thread Dun Peal
Hi, I'd like to be able to run executables or (bash) shell-commands in their own detached screen sessions, so I can naturally interact with all their IO streams: read stdout and stderr, write to stdin. What's the best way to do that? Ideally it would be something like `git -dmS foo-interaction f

Re: Displaying hardstatus in the title bar, but messages in the terminal window

2011-02-04 Thread Dun Peal
Thanks, that solved my problem, and that FAQ was incredibly informative; bookmarked! .D On Wed, Jan 26, 2011 at 10:36 AM, Phil! Gold wrote: > * Dun Peal [2011-01-24 13:35 -0600]: >> I have the following line in my .screenrc: >> >>   termcapinfo xterm*|rxvt*|kterm*|Eterm*

Displaying hardstatus in the title bar, but messages in the terminal window

2011-01-26 Thread Dun Peal
Hi! I have the following line in my .screenrc: termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007' This line makes screen display the permanent hardstatus in my terminal emulator's (Gnome Terminal) title bar. This is great since I always need to be able to see at a glance

Displaying hardstatus in the title bar, but messages in the terminal window

2011-01-26 Thread Dun Peal
Hi! I have the following line in my .screenrc: termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007' This line makes screen display the permanent hardstatus in my terminal emulator's (Gnome Terminal) title bar. This is great since I always need to be able to see at a glance