Commit Graph

378 Commits

Author SHA1 Message Date
Sadrul Habib Chowdhury
c80e5ec48f Fix reversed logic.
The hardstatus line was being shown in incorrect rendition with
both caption and hardstatus turned on.
2010-04-27 12:36:27 -04:00
Sadrul Habib Chowdhury
a04f24a445 Fix merge. 2010-04-24 15:51:13 -04:00
Sadrul Habib Chowdhury
b1041eb1d8 Merge branch 'master' into caption-never
Conflicts:

	src/display.c
	src/display.h
2010-04-24 15:50:52 -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
Curtis Brown
a881bb274a Doc addenum to command displays.
Closes savannah #29374.
2010-04-01 15:21:57 -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
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
Sadrul Habib Chowdhury
7851249fa3 Changelog. 2010-03-07 19:36:36 -05:00
Michael Scherer
261a022ce9 Fix build with -Werror=format-security
Some distributions ( mandriva for example ) use
-Werror=format-security by default when build C software to try to
enhance code quality and prevent security bugs. As the policy is to
correct all occurences of the error ( so there is no false positive,
nor question about to fix it or not ), a patch that fix the
error on gnu screen 4.0.3 have been added to the package. I have
rediffed it against latest git snapshot, to be sent upstream.

It mainly add "%s" where applicable.
2010-03-07 19:29:39 -05:00
Sadrul Habib Chowdhury
2e62d3683e Some more fixes for the window list.
Detecting when to destroy a window-list is rather complicated.
2010-03-04 21:40:37 -05:00
Sadrul Habib Chowdhury
02328ed6c8 Handle mouse events in a generic list.
Scroll wheels to scroll, left click to select.
2010-03-04 18:10:50 -05:00
Sadrul Habib Chowdhury
5a540e47c2 Fix sending mouse event to a mouse-enabled layer. 2010-03-04 18:10:05 -05:00
Sadrul Habib Chowdhury
824d214894 Fix terminating an on-window list. 2010-03-04 18:09:17 -05:00
Sadrul Habib Chowdhury
30be3fc3a1 Use intelligent screen refresh only in split regions.
When there are no splits, pausing output on a layer isn't necessary,
since it doesn't hit the performance. But we do want to continue to
pause output when there are splits to improve scrolling performance.
Fixes savannah bug #29055. Thanks to Kazuo Teramoto for reporting
the bug and testing the fix.
2010-03-04 15:39:51 -05:00
Sadrul Habib Chowdhury
b9253ef24e Do not terminate when size is reduced too much.
Height of a window can be negative, when both hardstatus and caption
are turned on, and the terminal size is reduced to one-line height.
So handle those cases more gracefully.

Fixes savannah bug #29037.
2010-03-03 11:55:39 -05:00
Sadrul Habib Chowdhury
da8e87d650 Sanity check line numbers for non-negative value.
It looks like 'ys' can be negative at times, which results in invalid
memory reads, and possibly writes. Valgrind log from Friedrich Delgado
Friedrichs in savannah bug #29050.
2010-03-03 11:18:55 -05:00
Sadrul Habib Chowdhury
48624f98db Reduce a little code duplication. 2010-02-26 12:09:31 -05:00
Sadrul Habib Chowdhury
4f28ba8c8f Some more fixes for the list management.
Make sure the allocated memory is always freed. Also, do not reference freed memory.
Thank you valgrind.
2010-02-26 11:31:19 -05:00
Sadrul Habib Chowdhury
b6dd7d8687 Print the group name in a group window. 2010-02-24 09:32:26 -05:00