Commit Graph

522 Commits

Author SHA1 Message Date
Amadeusz Sławiński
51a84088f0 fix %x improperly separating arguments
thanks to canvon from irc
2016-11-04 19:50:13 +01:00
Alexander Naumov
5460f5d28c adding permissions check for the logfile name
Screen shows error message and terminates if you
specify not available (permissions problem?) logfile
name (-L parameter).

bug #49491

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-11-04 14:14:00 +01:00
Amadeusz Sławiński
3aa5ba0598 fix term size in reply 2016-10-28 21:01:34 +02:00
Amadeusz Sławiński
c43e1fecfa document dynamictitle and defdynamictitle commands
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-10-19 18:21:29 +02:00
Amadeusz Sławiński
84f65b5a70 add dynamicatitle and defdynamictitle commands
allows enabling/disabling window title change via escape sequences
useful if you want to have one or more windows with static titles, but
your shell or other screen aware application changes it

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-10-19 18:04:59 +02:00
Guo Ci
324eb386ef Remove unnecessary decrement of rep_cnt
Currently, 0% and 1% points to the same location in the scrollback buffer due
to this bug.

Bug: 49336
2016-10-16 16:27:51 +02:00
Alexander Naumov
aa2c638997 Code reformating
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-09-24 01:11:32 +02:00
Alexander Naumov
cc54563ea8 Allow specifying logfile's name via command line parameter
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-09-22 17:08:24 +02:00
Amadeusz Sławiński
f3a12f0157 fix crash with long $TERM
screen-4.4.0 built from source using -D_FORTIFY_SOURCE=1 on Fedora 24 crashes when a new window is created using the -T parameter and a sufficiently long string.

https://bugzilla.redhat.com/show_bug.cgi?id=1350549

Reported-by: Ricardo Garcia
Bug: 48983
2016-09-10 12:06:34 +02:00
Amadeusz Sławiński
cfdbd4e751 fix terminal type length in option parsing
cherry-pick from master

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-09-01 21:11:24 +02:00
Jan C. Nordholz
08c5d3b6b0 Fixes broken handling of "bind u digraph U+"
This results in a SIGSEGV instead of prompting for the
remainder. Also fixes an allocation inaccuracy I found while
debugging this, even though that one looks innocuous.

Bug-Debian: https://bugs.debian.org/831672
Bug: 48691
2016-08-07 14:09:09 +02:00
Dmitri Vereshchagin
1babc3f765 Fix crash when bumping blank window
Blank window shouldn't be swapped with normal one.  bumpleft and
bumpright need a fore window to operate properly.
2016-07-09 23:37:52 +02:00
Amadeusz Sławiński
b6256ac1aa fix install with custom DESTDIR
Bug: 48370
2016-07-04 20:46:17 +02:00
Amadeusz Sławiński
33e46a16bc use VDISABLE instead of hardcoded values
Bug: 48339

Reported-By: Valentin Nechayev <n-gnu@nn.kiev.ua>
2016-07-04 20:31:54 +02:00
Amadeusz Sławiński
eeb46067d0 change VKILL to ^U
it seems to be sane default on unix systems
among other things, fixes weird behaviour of 'read' in bash on screen -dm

Bug: 48339

Reported-By: Valentin Nechayev <n-gnu@nn.kiev.ua>
2016-07-04 20:27:58 +02:00
Amadeusz Sławiński
fd3090fb0c Fix typos in documentation
Bug: 48277
2016-06-20 19:25:17 +02:00
Amadeusz Sławiński
4c68f0ea9d 4.4.0 bump v.4.4.0 2016-06-19 22:22:20 +02:00
Amadeusz Sławiński
bfae454059 Fix more hardcoded termlen
cherry-pick from master branch
bumped struct msg version
2016-06-18 12:58:19 +02:00
Amadeusz Sławiński
5ecd2b3958 fix null pointer dereference in RC_LOGFILE
Bug: 47826
2016-05-02 19:20:45 +02:00
Amadeusz Sławiński
23c7d0e199 fix logfile command so it starts logging to new file
Bug: 46228
2016-04-05 19:00:52 +02:00
Amadeusz Sławiński
738fefe659 fix compile with -DDEBUG 2016-03-10 23:52:01 +01:00
Alexander Naumov
0fae6713ab bugfix: vi-style search fails on long wrapped lines.
In scrollback mode, vi-style search was failing to
find text split across multiple lines by line wrapping.

Signed-off-by: Michael Constant <mconst@gmail.com>
2016-03-07 14:11:26 +01:00
Amadeusz Sławiński
4b2a6de31d Global out of bounds read in termcap.c due to wrong loop
Bug: 46401
2015-12-06 16:08:48 +01:00
Ed King
4b12d96b4a Added support for 24 function keys (ie. up to Shift-F12) 2015-09-05 19:04:02 +00:00
Amadeusz Sławiński
785fef09ea fix impossible if()
Bug: 40238
2015-09-05 17:13:07 +00:00
Amadeusz Sławiński
1db6b45904 Use-after-free
clang analyzer

move it before free
2015-09-05 15:39:10 +00:00
Amadeusz Sławiński (amade)
01476b764b remove unused variables xs xe ys 2015-09-05 15:39:08 +00:00
Amadeusz Sławiński
2e2410a668 Revert "change checks for utmp/utmpx in header"
This thing is more broken than I thought...
there is probably less musl linux users than cygwin ones so fully revert

This reverts commit 74fdc8988b.
2015-09-05 15:38:07 +00:00
Amadeusz Sławiński
84c15c98ab Partially revert "change checks for utmp/utmpx in header"
This reverts commit 74fdc8988b.
2015-09-05 14:58:14 +00:00
saper
cbda652881 Add trivial definitions of RFC 2292 CMSG_LEN() CMSG_SIZE() 2015-09-05 14:35:59 +00:00
saper
bfd4662c36 Use realpath(name, buf) for Solaris 2015-09-05 14:11:43 +00:00
Kuang-che Wu
b7484c2247 Fix stack overflow due to too deep recursion
Bug: 45713

How to reproduce:
Run this command inside screen
$ printf '\x1b[10000000T'

screen will recursively call MScrollV to depth n/256. This is time consuming and will overflow stack if n is huge.
2015-08-31 17:55:25 +00:00
Amadeusz Sławiński
03b8502450 Fix multijob build
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-08-08 21:10:02 +02:00
Alexander Naumov
31a442974b Remove version number from INSTALL, README and man page
Having the version as text in the manpage does not make
sense, you find:
       -v   Print version number.
in the manpage already.

Also a few another files have the version included and
needed to get touched...

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2015-07-01 11:07:15 +02:00
Amadeusz Sławiński
10a63e7b24 4.3.1 bump v.4.3.1 2015-06-28 23:43:42 +02:00
Alexander Naumov
fdd65811ab Update ChangeLog: version 4.3.0
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2015-06-22 20:51:37 +02:00
Amadeusz Sławiński
27a8c9677a Fix off by one error when resizing windows
Bug: 45321

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-06-21 22:34:29 +02:00
Amadeusz Sławiński
307540f204 Update README and INSTALL files
Update versions
Update links
Add current e-mail address
v.4.3.0
2015-06-13 18:31:57 +02:00
Amadeusz Sławiński
74fdc8988b change checks for utmp/utmpx in header
linuxes should've working utmpx, so this check was bit weird
commit 2b1bdf96 mentions some "linux workaround", but nothing specific

fixes build with musl libc
2015-06-13 18:00:58 +02:00
Alexander Naumov
95b05ac4e1 man page: AUTHORS, emails added
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2015-06-12 14:37:11 +02:00
Alexander Naumov
5710fb8e06 Update man page (part AUTORS)
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2015-06-11 12:15:26 +02:00
Amadeusz Sławiński
206bef2725 Fix implicit declarations 2015-06-10 23:39:22 +02:00
Amadeusz Sławiński
e86a6e3c39 fix warning with clang
fix warning with clang
warning: data argument not used by format string
2015-06-10 23:38:55 +02:00
Amadeusz Sławiński
2ec8f6e279 from gentoo screen-4.0.1-int-overflow-fix.patch
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-06-10 23:38:40 +02:00
Amadeusz Sławiński
5ac9ca9200 from gentoo 4.0.2-nonblock.patch
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-06-10 23:38:31 +02:00
Amadeusz Sławiński
66eb309fbc add parenthesis around evaluated expressions
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-06-10 23:37:41 +02:00
Amadeusz Sławiński
28d4a050ae Document new commands
bumpleft, bumpright, collapse
2015-06-10 23:36:46 +02:00
Amadeusz Sławiński
6721b8d1f5 port of bumpandcollapse patch
original patch by D Andrew Reynhout
http://www.quesera.com/reynhout/misc/screen+bumpandcollapse/

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2015-06-10 23:09:58 +02:00
Alexander Naumov
6795815fe1 I'd like to upstream the ipv6.patch.
Some distributions downstream supply it for years:

http://pkgs.fedoraproject.org/cgit/screen.git/tree/screen-ipv6.patch
https://sources.debian.net/src/screen/4.2.1-3/debian/patches/48screen-ipv6.patch/
https://build.opensuse.org/package/view_file/openSUSE:Factory/screen/screen-4.0.3-ipv6.patch

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2015-06-10 13:06:07 +02:00
Amadeusz Sławiński (amade)
5ac6a9498c fix possible repeated close() in file 2015-06-08 23:50:24 +02:00