Commit Graph

308 Commits

Author SHA1 Message Date
Sadrul Habib Chowdhury
23b17abd7a Exclude the PID when expanding $STY.
Excluding the PID from the expansion of $STY makes it possible to
do, e.g. 'source screenrc-$STY' to load session-specific commands.
If the PID is desired, for some reason, then '$PID.$STY' should be
used instead.
2010-02-18 15:20:36 -05:00
Sadrul Habib Chowdhury
b7d33bdc3c Fix creating numbered windows.
This is another bug introduced when the max number of windows was
made configurable. Bug reported by Christian Ebert in
<20100218160955.GC21624@krille.blacktrash.org>.

And fix a typo.
2010-02-18 14:30:41 -05:00
Sadrul Habib Chowdhury
75441d0e47 Update comment regarding msg-version history. 2010-02-18 10:29:36 -05:00
Sadrul Habib Chowdhury
8b46d8a5d2 Bump msg revision number so proper checking can be done. 2010-02-18 10:23:07 -05:00
Sadrul Habib Chowdhury
058bb9e0df Changelog the last few changes. 2010-02-17 01:30:00 -05:00
Sadrul Habib Chowdhury
e01e137673 Allow expanding the command to full buffer size.
Without this, commands like '-Q echo $STY' would fail with error:
  no space left for variable expansion.
2010-02-16 16:29:34 -05:00
Curtis Brown
45ddce39d1 Spelling fixes.
Closes #28473 on savannah.
2010-02-16 14:39:57 -05:00
Curtis Brown
7dc1b16ca3 Update info-page for 'stuff'.
Closes #28616 on savannah.
2010-02-16 14:36:04 -05:00
Curtis Brown
978f859e50 Document 'layout dump', and clarify 'layout save'.
Closes #28586 on savannah.
2010-02-16 14:33:06 -05:00
Curtis Brown
a83eee72ad Update the man-page.
The man-page is updated for: mousetrack, defmousetrack,
focusminsize, group and layout commands.

Closes #28715 on savannah.
2010-02-16 14:27:27 -05:00
Curtis Brown
e9f5aef006 Move 'silence' into 'Monitor' section.
Closes #28743 on savannah.
2010-02-16 14:21:57 -05:00
Sadrul Habib Chowdhury
a889d858d6 Error out if a pre-select window is not found.
The man-page is updated to show that if the window selected using
'-p' cannot be determined with -X or -Q flags, then the command
specified will not be executed.

Fixes #28783 in savannah.
2010-02-16 13:41:20 -05:00
Sadrul Habib Chowdhury
6c6d7edcce Make 'number' query-able. 2010-02-16 12:45:53 -05:00
Sadrul Habib Chowdhury
5275b7c42a Merge branch 'query-result' 2010-02-16 11:37:14 -05:00
Sadrul Habib Chowdhury
2f39e64a76 Update documentation for queries. 2010-02-16 11:36:55 -05:00
Sadrul Habib Chowdhury
7399960d86 Allow querying 'select'.
Using this, it will be possible to detect if a particular window
exists or not.
2010-02-16 11:27:49 -05:00
Sadrul Habib Chowdhury
929be520ad Complete the query-response system.
Some commands now can be queried from a remote session using the
'-Q' flag, e.g. 'screen -Q windows'. The commands will send the
response to the stdout of the querying process. If there was an
error in the command, then the querying process will exit with
a non-zero status.

The commands that can be queried now are:
  echo
  info
  lastmsg
  time
  title
  windows
2010-02-16 11:00:58 -05:00
Sadrul Habib Chowdhury
97059b7ad5 Fix compilation on systems where execvpe is defined. 2010-02-15 21:47:39 -05:00
Sadrul Habib Chowdhury
8d3c168f49 Merge branch 'master' into query-result 2010-02-12 16:42:21 -05:00
Sadrul Habib Chowdhury
9756ae6fb2 Get rid of compile-time warnings. 2010-02-12 16:38:38 -05:00
Sadrul Habib Chowdhury
b040667633 Put in some flags to suppress messages from commands.
A command name can be prefixed by '@' to suppress the error
messages, and by '-' to suppress the normal messages. The flags are
currently parsed, but not acted upon.
2010-02-12 16:26:16 -05:00
Sadrul Habib Chowdhury
f341577478 Fix escape-# to select windows this time. 2010-02-08 21:19:24 -05:00
Sadrul Habib Chowdhury
54791bc9f9 Fix a crash caused by configurable maxwin. 2010-02-08 14:55:28 -05:00
Sadrul Habib Chowdhury
e6a28cf8bf Accommodate more color changes in the caption. 2010-01-26 15:17:26 -05:00
Sadrul Habib Chowdhury
f33e5cdecb Increase the max-window limit.
The limit can be increased using the 'maxwin' command. There is
still an upper-limit of 2048 windows.
2010-01-26 15:15:24 -05:00
Sadrul Habib Chowdhury
a6eea7b4d6 Re-optimize screen updates.
In only the top line and the bottom line had to be updated, we were
updating the entire region in between as well! This clearly is bad.
So instead of doing that, just update the lines that need changing.
Thanks to Chris Jones for reporting the bug.
2009-12-24 15:28:51 -05:00
Curtis Brown
a33070eb0e Update manual.
Included here are three changes, two of which I wish I had when I was
beginning to learn screen. The third is that it just seemed like to me
the TOC belongs at the /beginning/ of the manual.
Also, a typo from a previous change.
2009-12-21 12:54:56 -05:00
Sadrul Habib Chowdhury
4b778782ce Allow 'at' command for windows without a display.
For window-context, 'at' commands can work without any existing
display. So allow for that. If the command specified for 'at'
requires a display, then that will still fail, as it should. But for
some commands, just an existing window is enough. Fixes savannah
bug #26996.
2009-12-20 00:14:15 -05:00
Sadrul Habib Chowdhury
90afd2d35d Changelog change to blankerprg, and credits. 2009-12-19 19:48:49 -05:00
Sadrul Habib Chowdhury
7ac593d74d Cap the maximum sizes of a window. 2009-12-19 18:44:45 -05:00
Jan Christoph Nordholz
f515135eb0 Allow no arguments for blankerprg. 2009-12-19 14:52:51 -05:00
Sadrul Habib Chowdhury
52efeb8dfc Allow no argument to blankerprg.
Without any argument, blankerprg will show the command that would be
executed on 'blanker'. To unset, use an empty string, i.e.
"blankerprg ''".
2009-12-19 14:23:27 -05:00
Kees Cook
84b8ef5de3 Report impermissible write failure to attached display
Fixes savannah bug #26401.
2009-12-19 12:32:50 -05:00
Jan Christoph Nordholz
f6c4b82a35 Clarify the manual a little.
Document the fact that when calling 'env=var screen app arg' from inside
screen the environment variable will go up in smoke.
2009-12-18 16:42:12 -05:00
Jan Christoph Nordholz
1e450254e7 Allow symlinked SockDir.
I don't know why screen should not allow a symlinked SockDir;
so now it does. (Note: this is one of TWO calls to lstat()
the whole program has - and this one isn't even wrapped
in #ifdef HAVE_LSTAT as it should.)
2009-12-18 16:33:02 -05:00
Jan Christoph Nordholz
3b19a1d343 Update documentation for 'nethack'.
Document that there are two possible causes for 'nethack on'
being activated by default...
2009-12-18 16:31:18 -05:00
Jan Christoph Nordholz
0400567052 Correction in TFM.
The builtin 'screen' command can directly reference window IDs
up to MAXWIN, not only {0-9}. Additionally mention Debian's
MAXWIN default in the man and info pages.
2009-12-18 16:28:57 -05:00
Jan Christoph Nordholz
855b8e7b98 Discourage the use of 'sessionname' (see debian bug #103771). 2009-12-18 16:26:41 -05:00
Sadrul Habib Chowdhury
cb86fbaf25 Move the cursor in the window/display list.
This will make it easier to determine which row is selected in case
the rendition for standout mode is the same as the normal mode (i.e.
'= dd'). Fixes debian bug #446082.
2009-12-17 22:47:49 -05:00
Clavelito
82b2bf3401 Typo. 2009-12-17 19:22:43 -05:00
Sadrul Habib Chowdhury
33b7c9ca39 Wait a bit before killing a window.
Wait a few seconds (10) before killing a window when wait() returns
the pid for the child process in the window. This is so the output
of the window doesn't get truncated in zombie mode. Micah pointed
out the bug and Juergen pointed out the fix at #27061.
2009-12-17 17:48:05 -05:00
Sadrul Habib Chowdhury
ce4d170912 Allow attaching to a session whose name starts with digits.
Fixes debian bug#549272.
2009-12-17 16:03:34 -05:00
Sadrul Habib Chowdhury
8b2b63cebe Credit for 7f8218c. 2009-12-17 15:32:12 -05:00
Sadrul Habib Chowdhury
71cd5c06c6 Fix cursor positioning after a search in copy mode
The problem would show up with splits (both vertical and
horizontal), because the layer wouldn't remember the position the
cursor was moved to, and when screen refreshes the regions (if
there's more than one), it takes the cursor to the old position. The
fix is to simply remember the cursor position in the layer.
2009-12-17 13:11:56 -05:00
Curtis Brown
d11bdb4fdd Various documentation updates. 2009-12-15 16:27:53 -05:00
Sadrul Habib Chowdhury
e0ac7e1651 GNUize. 2009-12-15 16:17:33 -05:00
Sadrul Habib Chowdhury
1e4fb57b49 Allow adding visual notification in caption string.
'%P' in caption string will set '%?' to true if the current region is
in copy/paste mode. So, if you want to simply change the color etc. of
your caption, prepend '%?%P%{XXX}%?' to your caption and you're set ('XXX'
stands for the usual attribute/color modifier). If, on the other hand,
you want to change the caption string in copy mode, change your caption
string to '%?%PCaption for copy mode%:Your usual caption%?'.
2009-12-15 12:59:18 -05:00
Sadrul Habib Chowdhury
0dc3a24b7b New 'dump' subcommand for 'layout'.
This command will write a series of screen commands that can later be used to
recreate the current layout. I think this will be pretty useful. Users like to
create a layout interactively, and use it again for the next session etc.
2009-12-11 17:29:48 -05:00
Emanuele Giaquinta
8284ab1199 Combining characters have 0 onscreen width. 2009-12-09 12:05:11 -05:00
Sadrul Habib Chowdhury
acd9b12b44 Remember to update the region containing the cursor. 2009-12-08 07:01:06 -05:00