Commit Graph

1137 Commits

Author SHA1 Message Date
Amadeusz Sławiński
14a1034953 fix term size in reply 2016-10-28 20:59:51 +02:00
Amadeusz Sławiński
79a7c33aea document dynamictitle and defdynamictitle commands
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2016-10-19 18:26:16 +02:00
Amadeusz Sławiński
0e801ab148 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 17:54:11 +02:00
Guo Ci
e973e7fee6 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:25:55 +02:00
Amadeusz Sławiński
fd608ec035 int -> size_t in window.[ch] 2016-10-15 22:10:58 +02:00
Amadeusz Sławiński
cf5a770488 int -> size_t 2016-10-05 16:48:10 +02:00
Amadeusz Sławiński
cd28dcad8c int -> bool 2016-10-05 15:47:03 +02:00
Amadeusz Sławiński
4a0863fdb4 use SYSTEM_SCREENRC define instead of ETCSCREENRC 2016-10-05 15:27:03 +02:00
Arseniy Simonov
7919c151df segfault in src/authentication.c fix 2016-10-03 21:12:55 +02:00
Amadeusz Sławiński
ddc1d4697d move execvpe definition to header
needed for display.c which also uses execvpe on platforms that don't
have it
2016-09-29 20:38:37 +02:00
Amadeusz Sławiński
ddccc92197 fix build with no execvpe 2016-09-25 14:54:39 +02:00
Amadeusz Sławiński
58792492a1 pause only has boolean states, make it bool 2016-09-23 20:54:35 +02:00
Amadeusz Sławiński
1b34eff99a get rid of unused argument
we do all calculations in base10
2016-09-23 20:54:30 +02:00
Amadeusz Sławiński
725d8ee4fd bcopy -> memmove 2016-09-23 20:54:26 +02:00
Amadeusz Sławiński
eb43e6aa13 another int -> bool 2016-09-23 20:54:21 +02:00
Amadeusz Sławiński
78a961188f further rewrite of configure.ac
restore
--enable_socket_dir
--system_screenrc
--with_pty_mode
--with_pty_group
--with_pty_rofs
2016-09-18 17:13:49 +02:00
Amadeusz Sławiński
0c323e8f94 fix cherry-pick in previous commit 2016-09-14 17:25:38 +02:00
Amadeusz Sławiński
becc1dfda9 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:10:08 +02:00
Alexander Naumov
6d391954d4 set(back) default logfile name
Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-08-19 16:25:57 +02:00
Alexander Naumov
33bbf57599 replacing MAXLOGFILELEN to PATH_MAX 2016-08-19 15:06:23 +02:00
Alexander Naumov
b8c6ea9efa Specify logfile's name in shell by using -L option
It doesn't replace "logfile" value from the .screenrc file and
will work if no name defined. You can't use name that starts with
"-" symbol. Maximal name's size is 30 chars.

Signed-off-by: Alexander Naumov <alexander_naumov@opensuse.org>
2016-08-17 11:09:49 +02:00
Jan C. Nordholz
5a07e1c74e Fixes broken handling of "bind u digraph U+"
This results in a SIGSEGV instead of prompting for the
remainder.

Modified patch from screen-v4 (Amadeusz)

Bug-Debian: https://bugs.debian.org/831672
Bug: 48691
2016-08-07 14:15:10 +02:00
Amadeusz Sławiński
988bb3061e use enums instead of hardcoded values 2016-07-24 23:02:20 +02:00
Amadeusz Sławiński
bca54e6c32 correct argument type int > WinMsgEscapeChar 2016-07-24 23:02:14 +02:00
Amadeusz Sławiński
f806c6e22b move WindowChanged where it belongs better 2016-07-24 23:02:00 +02:00
Amadeusz Sławiński
89d2599938 va_end() was already called 2016-07-17 11:20:51 +02:00
Amadeusz Sławiński
2fe2175d93 don't reinvent the wheel (InStr -> strstr) 2016-07-16 16:55:41 +02:00
Dmitri Vereshchagin
36835a9e7d 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:38:23 +02:00
Amadeusz Sławiński
16203ee3ac fix install with custom DESTDIR
Bug: 48370
2016-07-04 20:45:37 +02:00
Amadeusz Sławiński
da64327083 use VDISABLE instead of hardcoded values
Bug: 48339

Reported-By: Valentin Nechayev <n-gnu@nn.kiev.ua>
2016-07-04 20:25:18 +02:00
Amadeusz Sławiński
594946a113 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:20:41 +02:00
Amadeusz Sławiński
3bf319d860 fix compiler warnings 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
783199ec3d make flag boolean 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
1adbea8970 use modern style function definition
also handlers, use void * to pass data
2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
6fabc8f46b int -> size_t for string length 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
6992479d14 fix forward declaration 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
291a33e29a don't "save" one letter from variable names 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
048f7867bc c99 style for loops 2016-06-25 13:20:34 +02:00
Amadeusz Sławiński
62370e3a2e type fixing, make *_uid uid_t 2016-06-20 19:41:00 +02:00
Amadeusz Sławiński
a043edca41 Fix typos in documentation
Bug: 48277
2016-06-20 19:25:36 +02:00
Amadeusz Sławiński
916b865683 int len -> size_t len 2016-06-20 00:43:29 +02:00
Amadeusz Sławiński
9d035613cd change various pid variables type to pid_t from int 2016-06-20 00:16:18 +02:00
Amadeusz Sławiński
53fb676e7a make DoWait more readable
make for loop sane
fix pid variable type
rename window pointer
2016-06-20 00:05:23 +02:00
Amadeusz Sławiński
59ac621889 USE_SETEUID -> HAVE_SETEUID 2016-06-19 23:54:09 +02:00
Amadeusz Sławiński
8d677e735f check for langinfo.h header 2016-06-18 15:14:54 +02:00
Amadeusz Sławiński
0efa5b6205 after 3 failed login attempts, don't continue 2016-06-18 15:08:28 +02:00
Amadeusz Sławiński
a4397fbf05 authentication. some cleanups + handle more results 2016-06-18 15:08:28 +02:00
Amadeusz Sławiński
2ad4a26ed0 make pam not depend on pam_misc
provide our own conversation function, so it can be used on systems
without pam_misc
2016-06-18 15:08:28 +02:00
Amadeusz Sławiński
f0109ebc3c further password cleanups
all towards handling things in one file (authenticate.c)
2016-06-18 15:08:28 +02:00
Amadeusz Sławiński
29501d7426 remove unneeded password stuff from socket attach/detach 2016-06-18 15:08:28 +02:00