Commit Graph

398 Commits

Author SHA1 Message Date
Sadrul Habib Chowdhury
c795ac322f Merge remote-tracking branch 'origin/master' into unicode++ 2012-01-19 16:35:03 -05:00
Sadrul Habib Chowdhury
8cf5efc070 Fix a crash when attaching to a layout that was created while detached. 2011-03-28 18:45:20 -04:00
Sadrul Habib Chowdhury
e5b296e8af Make 'layout' subcommands work when detached.
Ideally, splits and layouts should be allowed when there's no display. At this
moment, you can just create a few layouts and name them when detached.

BUG=28386
2011-03-28 17:24:59 -04:00
Sadrul Habib Chowdhury
5a74e3d902 Merge branch 'master' of git://git.savannah.gnu.org/screen 2011-03-28 13:30:29 -04:00
Sadrul Habib Chowdhury
519ac9b05b Remember the bell event if there's no current display.
This way, when a user logs back in, he is notified of the bell event that
happened while detached.
2011-03-28 13:27:08 -04:00
Jessica McKellar
066b098a31 Spelling fix: usefull --> useful.
Thank you Curtis Brown for the patch.

This resolves bug #27052.
2010-11-10 21:47:46 -05:00
Sadrul Habib Chowdhury
a805439f64 Fix layout ordering.
Layouts were being stored in a reversed list. This makes it
confusing for both users and developers with regards to what the
next layout is ('next', lay_next). So store the layouts in a
properly ordered list in order to avoid the confusion.

This closes savannah #29800.
2010-06-22 11:22:31 -04:00
Sadrul Habib Chowdhury
dfab460087 Bring back --with-sys-screenrc configure flag. 2010-06-21 22:26:54 -04:00
Sadrul Habib Chowdhury
2f565ead2d Fix compiling with SIMPLESCREEN. 2010-05-10 23:18:36 -04:00
Sadrul Habib Chowdhury
4f9101fc9d Fix updating paused regions (in split mode).
Adding a multi-cell character in a split region doesn't always
refresh properly. Fix that problem.
2010-05-10 23:15:21 -04:00
Sadrul Habib Chowdhury
98bf4132c5 Fix a bug with displaying blank spaces with bce on.
With bce on, in some terminals, copying when applications use a
theme with a custom background color other than the default ends up
copying blank-spaces at the end of the lines as white-spces. This
fixes that.
2010-05-10 22:52:51 -04:00
Sadrul Habib Chowdhury
07b5b14617 Credit. 2010-04-24 15:29:47 -04:00
Curtis Brown
822666fa35 Misc updates to the man and info pages.
Closes savannag bug #29602.
2010-04-19 20:58:02 -04:00
Curtis Brown
7f606797ee Update doc about selecting window in windowlist.
Update doc about selecting window in windowlists by pressing its
number. Closes savannah bug #29603.
2010-04-19 20:52:31 -04:00
Alexander Gattin
1741b69d4b Fix compile error for setenv in HP-UX.
Closes savannah bug #29451.
2010-04-17 16:32:15 -04:00
Sadrul Habib Chowdhury
a2284110b5 Select window by pressing # in window number.
Thanks to Martin Przyjazny for reporting.
2010-04-13 21:41:30 -04:00
Sadrul Habib Chowdhury
4fb0d4f6fb Remove cap for scrollback history.
Remove the unintentionally added cap for scrollback history.
2010-04-13 21:20:04 -04:00
Sadrul Habib Chowdhury
f953529460 Improve cursor store/restore on smcup/rmcup.
When going to alternate screen buffer on smcup, the terminal is
supposed to store the cursor position, rendition etc. Screen used to
store only the position (and that was just a little buggy anyway).
So change this behaviour to store all information about the cursor,
and restore everything on rmcup.

Apparently, the terminal is supposed to store the cursor for smcup
(CSI ? 1049 h) and DECSC (ESC 7, CSI s, CSI ? 1048 h) separately. So
be it.
2010-04-03 00:52:53 -04:00
Sadrul Habib Chowdhury
d6e9eb25e9 Re-organize some code.
This change causes no functional change at all. This simply groups
some common variables into structs.
2010-04-02 22:27:59 -04:00
Sadrul Habib Chowdhury
43db71f8b5 Use NEED_FORE flag for 'hardcopy'.
Screen wouldn't do anything with 'hardcopy' if there was no
foreground window, except overwriting the specified file (when
hardcopy_append is off, of course). But the NEED_FORE flag wasn't
set. I am not sure why this was the case. So I have added the
NEED_FORE flag so that 'hardcopy' command fails if there is no
foreground window.
2010-04-01 15:59:34 -04:00
Kipling Inscore
fd8832ccdb Fix 'hardcopy -h'.
Make -h save scrollback with or without a file name given. Also,
preserve the unlikely case in which someone actually does want to
save display to '-h'; with

  :hardcopy -- -h

or, to save both history and display to '-h'

  :hardcopy -h -h

Also,

  :hardcopy --
  :hardcopy -h --

will, as they always have, save display or history and display to
'--'.
2010-04-01 15:53:29 -04:00
Sadrul Habib Chowdhury
869278e490 Merge branch 'master' into unicode++ 2010-04-01 15:25:03 -04:00
Curtis Brown
a881bb274a Doc addenum to command displays.
Closes savannah #29374.
2010-04-01 15:21:57 -04:00
Curtis Brown
7ec27de25c Doc addenum to command displays.
Closes savannah #29374.
2010-04-01 15:18:50 -04:00
Sadrul Habib Chowdhury
a3f6ce0ca6 Update GPL version and copyright notice in docs. 2010-03-30 14:35:59 -04:00
Sadrul Habib Chowdhury
b24b0bc5a3 Suppress messages when commands have '@' (or '-') prefixes.
Currently, '@' or'-' prefixed commands suppress both error messages
and normal messages. It will be possible to differentiate between
the two, though, if there was need for it. These flags can be useful
for, for example, remote commands to not interrupt displays etc.
2010-03-29 13:52:14 -04:00
Sadrul Habib Chowdhury
0fb12a018a Do not allow changing title with -Q. 2010-03-28 10:57:59 -04:00
Sadrul Habib Chowdhury
e166231a6d A lot of people seem to read this file. So fix it. 2010-03-27 14:15:23 -04:00
Curtis Brown
7a275dbda9 small update for windowlist keybindings. 2010-03-27 12:33:35 -04:00
Curtis Brown
f1c0a634f6 Doc addenum to copy mode keybindings. 2010-03-27 12:31:40 -04:00
Sadrul Habib Chowdhury
dfdc0540e8 Typo fix by a good samaritan in IRC (sitaktif). 2010-03-26 21:04:10 -04:00
Sadrul Habib Chowdhury
ad8910f21f Fix a regression with -X commands.
Thanks a lot to Max Kalashnikov for pointing out that the bug
remained after the last fix (f7adfae856). This should properly fix
Savannah bug #25813.
2010-03-26 19:43:49 -04:00
Sadrul Habib Chowdhury
9c2fb08449 Expand $PWD to screen's current working directory.
Expanding $PWD to expand to the correct current working directory
can be useful to figure out, for example, where log files are
created, and other purposes.
2010-03-23 23:05:02 -04:00
Sadrul Habib Chowdhury
f7adfae856 Fix a regression in parsing -X commands.
Details discussed in #25813.
2010-03-20 20:52:50 -04:00
Sadrul Habib Chowdhury
0d0a3e392a DECCOLM should reset the window.
Setting the page-width to 80/132 columns should clear the window and
position the cursor on top-left.

Reference: http://vt100.net/docs/vt510-rm/DECCOLM
2010-03-18 02:23:33 -04:00
Sadrul Habib Chowdhury
e276ce2bbc Treat VT as LF instead of ignoring it. 2010-03-18 00:52:31 -04:00
Curtis Brown
19ce777f73 Doc addenum to windowlist keybindings. 2010-03-17 21:17:08 -04:00
Sadrul Habib Chowdhury
0e51882a24 Show the enabled capabilities in the 'license' page.
Showing the capabilities somewhere is useful for users, especially
when diagnosing a bug. The 'license' page seems as good a place as
any to stuff this info in.
2010-03-17 13:22:39 -04:00
Sadrul Habib Chowdhury
47590ac856 Mark the right-side of a region with '|'s.
When a layer displayed within a canvas is smaller than the available
area, we show '-' at the bottom, and now '|' on the right to mark
the actual size of the layer in the canvas.
2010-03-17 12:36:09 -04:00
Sadrul Habib Chowdhury
8a6abbab01 Add special rendition for silence'd windows.
The default rendition for silence'd windows in caption/hardstatus
or in the windowlist is =u (underline). Closes savannah bug #29205.
2010-03-14 23:02:37 -04:00
Sadrul Habib Chowdhury
6e67aee852 Fix a typo. 2010-03-12 19:27:09 -05:00
Sadrul Habib Chowdhury
08939ef842 Fix an invalid memory read.
Thanks a bunch to Friedrich Delgado Friedrichs for providing the valgrind logs.
2010-03-12 19:25:50 -05:00
Sadrul Habib Chowdhury
fec4e0c1aa Merge branch 'master' into unicode++ 2010-03-10 09:46:22 -05:00
Sadrul Habib Chowdhury
895b2211f9 Fix autoaka. 2010-03-10 09:43:56 -05:00
Sadrul Habib Chowdhury
cd874b642c Make layer-resizing a bit more robust and readable
Instead of killing all overlays when resizing, just kill the ones
that cannot be resized, and the resized the rest. This fixes a bug
where the window-list (or a group-window) is aborted when
layer-size changes (because window-size changed, or
caption/hardstatus etc. was toggled). This also makes the code
robust. So if you are looking at a window/display list, and the
window-size is changed, the list won't go away.
2010-03-10 00:57:22 -05:00
Sadrul Habib Chowdhury
9d3938870c Fix compiling SIMPLESCREEN. 2010-03-09 17:05:57 -05:00
Sadrul Habib Chowdhury
2d92e194ef Fix an invalid memory read.
The window-list data gets freed when we abort the list. So read what
we need to before aborting the list.
2010-03-09 16:34:06 -05:00
Sadrul Habib Chowdhury
26c3a1a371 More fixes for -Werror=format-security. 2010-03-08 15:04:22 -05:00
Sadrul Habib Chowdhury
25ff9f7a8b Fix a hardstatus update issue.
The initial change was to fix a bug in gnome-terminal
(https://savannah.gnu.org/bugs/?23699), but that broke hardstatus
update issues on bell (https://savannah.gnu.org/bugs/?24096). So
apply a proper fix for #23699 without causing #24096.
2010-03-08 14:29:40 -05:00
Sadrul Habib Chowdhury
eb4cea75f2 Fix refresh when double-cell characters end a line
Double cell characters that end a line are not properly displayed
when there are split regions. Takeshi Banse detected the problem and
a fix for it in Savannag bug #29106. A better fix for this was
applied in the unicode++ branch, but that won't work in 'master'.
This is approximately the same fix, in a slightly different way.
2010-03-08 10:01:26 -05:00