Commit Graph

604 Commits

Author SHA1 Message Date
Lukáš Nykrýn
7d8fd3ad5e fix for altscreen
https://savannah.gnu.org/bugs/?35757

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-05-23 11:19:21 +02:00
Amadeusz Sławiński
a1d6e691dc Fix cpation/hardstatus rendering problem
https://savannah.gnu.org/bugs/?42369
https://savannah.gnu.org/bugs/?32339
https://savannah.gnu.org/bugs/?42247

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-05-17 12:44:44 +02:00
Amadeusz Sławiński
6eab875ef7 Revert "Revert "Fix a rendition issue for padded captions""
This reverts commit f932245069.
got fix for that
2014-05-17 12:44:20 +02:00
Amadeusz Sławiński
f932245069 Revert "Fix a rendition issue for padded captions"
This reverts commit c50098231e.

Fixes:
https://savannah.gnu.org/bugs/?42369
https://savannah.gnu.org/bugs/?32339
https://savannah.gnu.org/bugs/?42247

Breaks again:
https://savannah.gnu.org/bugs/index.php?24066

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-05-17 02:01:23 +02:00
Amadeusz Sławiński
6df6baeeb1 Fix OpenBSD build
bug 42239

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-05-10 18:24:31 +02:00
Amadeusz Sławiński
f93cbbd859 clang warning
bug 42257

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-05-10 18:14:55 +02:00
Amadeusz Sławiński
f4ea0ccc0d prepare for v.4.2.1
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
v.4.2.1
2014-04-28 00:24:10 +02:00
Amadeusz Sławiński
2d53e34d79 Document 'cjkwidth' command
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-28 00:21:06 +02:00
Amadeusz Sławiński
ae76b78836 Bump msg struct version
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-28 00:08:09 +02:00
Amadeusz Sławiński
0d3165df84 Update Changelog
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-28 00:07:06 +02:00
Amadeusz Sławiński
7571155758 Revert "Revert "allow /dev/console to be a symlink""
Was reverted to apply some other patches correctly
This reverts commit 12dd363fc5.
2014-04-26 18:29:40 +02:00
Amadeusz Sławiński
3b2b8ee6ae fix-utf8-status-padding-bug
Ensure that multibyte UTF8 characters are counted correctly when
calculating and displaying the caption and hardstatus lines.

Based on an earlier version by Kees Cook <address@hidden>

Signed-off-by: Dustin Kirkland <address@hidden>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:29:02 +02:00
Miroslav Lichvar
ceb7b5121a Check return code from setgid/setuid.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:27:33 +02:00
Miroslav Lichvar
d6d34f0b3b Set PAM_TTY item.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:25:45 +02:00
Miroslav Lichvar
4e1946df99 Remove redundant if statements.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:23:16 +02:00
Miroslav Lichvar
1d27740fd2 Don't assign address of auto variable to outer scope symbol.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:22:51 +02:00
Miroslav Lichvar
b0aeb18e74 Add more tty checks.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:22:18 +02:00
Miroslav Lichvar
c948ad8c04 Avoid dereferencing null pointer in utmp.c.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-26 18:21:43 +02:00
Amadeusz Sławiński
15a7b5b667 Revert "fix-utf8-status-padding-bug"
This reverts commit e9e78d9b2b.
2014-04-26 18:20:37 +02:00
Amadeusz Sławiński
12dd363fc5 Revert "allow /dev/console to be a symlink"
This reverts commit 78c408adfb.
2014-04-26 18:19:54 +02:00
Amadeusz Sławiński
6ba1c1cb66 Revert "screen outputs screen "ÿ" after a connected character."
Introduces regression

This reverts commit df9bd2ca2a.
2014-04-25 20:33:42 +02:00
Amadeusz Sławiński
ff98d7ff58 those 0 assignment made rest of code totally not working
Inspired by checking bug #41167

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 19:59:48 +02:00
Jiri Kukacka
debd185b41 fixes for various Parfait errors
bug #41167

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 19:49:42 +02:00
Amadeusz Sławiński
8382e7eac2 Update help message
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 16:08:19 +02:00
Amadeusz Sławiński
ef87970f7c doc fixes from opensuse
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 15:26:31 +02:00
Tobias Wulff
424f3668c0 Ensure that the title prompt only appears once
Windows in screen can be renamed using C-a A (title). This can be done
repeatedly so that any number of prompts for a new window name overlay
each other. Once the user entered a name in the topmost prompt and
presses enter, he has to do it again for all the prompts underneath.
This can be very confusing in case the user hit C-a A several times
without noticing or realizing.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:50:19 +02:00
Igor Pashev
78c408adfb allow /dev/console to be a symlink
/dev/console may be a symlink
See http://lists.debian.org/debian-devel/2013/01/msg00576.html
In case of SunOS kernel (illumos) it is not possible for a device
file to have st_nlink != 1, so do not bother with "/devices/"

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:46:59 +02:00
Amadeusz Sławiński
d4e3633104 Patch to fix minor issues with the man page:
* Lintian warning manpage-has-errors-from-man fixed by replacing all
  occurrences of "..." by "…"
* Fixes tons of lintian warnings hyphen-used-as-minus-sign
* Fixes two typos found by lintian

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:44:00 +02:00
Amadeusz Sławiński
bda953b45f Fixes directory creation race condition
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:35:57 +02:00
Kenta Murata
df9bd2ca2a screen outputs screen "ÿ" after a connected character.
This is a character without the need.
This happens in UTF-8 environment.
Before : screen$ ruby1.9.1 -e 'puts "\u304b\u3099.."'
         がÿ...
patch applied :  screen $ ruby1.9.1 -e 'puts "\u304b\u3099.."'
         が..
Report from  http://d.hatena.ne.jp/mrkn/20101014/fix_screen_utf8_nfd_bug
Copyright Kenta Murata (mrkn) <mrkn@ruby-lang.org>
Modified by Nobuhiro Iwamatsu <iwamatsu@debian.org>

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:33:10 +02:00
Amadeusz Sławiński
e9e78d9b2b fix-utf8-status-padding-bug
Ensure that multibyte UTF8 characters are counted correctly when
calculating and displaying the caption and hardstatus lines.

Based on an earlier version by Kees Cook <address@hidden>

Signed-off-by: Dustin Kirkland <address@hidden>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:24:51 +02:00
Amadeusz Sławiński
fe0669d90d doc fixes
The manpage for Screen says that you should use C-a C-\ to quit screen, while it is in fact C-a \ (Closes: #630535)

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:13:03 +02:00
Jan Christoph Nordholz
cee9790d5f Remove an unconditional nethack message.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:04:18 +02:00
Jan Christoph Nordholz
ce1161bb53 This is not getopt() and we don't have two leading dashes, so parse and match the long options in full.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 14:01:52 +02:00
Jan Christoph Nordholz
d07546e23f Make the exitcode of '-q -ls' and friends ('-qr -ls' and even '-qdr -ls') match the documentation.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:55:29 +02:00
Jan Christoph Nordholz
003935b7bc don't change umask
Make it a bit harder to shoot oneself in the foot by
keeping the umask tight by default when creating the
screen exchange file. Fearless users may still chmod it.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:49:48 +02:00
Jan Christoph Nordholz
f316d8236c Get rid of several minor gcc warnings.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:48:45 +02:00
Jan Christoph Nordholz
ee3ba201b7 increase size of MAXSTR and input line buffer
Increase the MAXSTR macro to suit present-day needs.
Increase the maximum length of the input line buffer likewise.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:46:20 +02:00
Jan Christoph Nordholz
d39aff7eed Under BSD set controlling terminal explicitly.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:44:04 +02:00
Martin Pitt
3cf5a072aa fix locking root screen when root has no password
When locking a root-owned screen, check that root has a
password set. If not, ask for an unlocking key.
See https://bugs.launchpad.net/bugs/6760

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:39:21 +02:00
Amadeusz Sławiński
867510a9eb fix parallel build
screen FTBFS if make uses parallel building (at least with -j8). This
patch adds the missing dependencies to make parallel builds work, too.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:36:27 +02:00
Jan Christoph Nordholz
806fb1c641 Add a missing include to get a few prototypes that caused build issues on kfreebsd-amd64.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:34:11 +02:00
Axel Beckert
2ef6b0eb11 Add some missing defined(__GLIBC__) to get linux-ish terminal handling.
Thanks: Jan Christoph Nordholz

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:32:31 +02:00
Jan Christoph Nordholz
4bb28f4b1b Enhance the vsprintf() test to also succeed on Alpha.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:29:37 +02:00
Amadeusz Sławiński
6ba636f2d1 fix wrong option name in configure.in
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-25 13:26:16 +02:00
Amadeusz Sławiński
fe8103cccd allow for defining term and login length if needed
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-22 18:25:46 +02:00
Amadeusz Sławiński
b62e4ef097 Allow screen to run for users with long logins
username can have up to 32 characters

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-22 14:15:32 +02:00
Amadeusz Sławiński
785f5992d8 fix screen to run on terminals with long $TERM
According to tic man page:
Terminal names exceeding the maximum alias length
(32 characters on systems with long filenames, 14 characters otherwise)
will be truncated to the maximum alias length and a warning message
will be printed.

Use 32 as it's bigger value and it won't matter on systems with smaller
filenames.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-22 13:59:12 +02:00
Amadeusz Sławiński
f06152994e Revert "fix screen to run on terminals with long $TERM"
This reverts commit 44020241d0.
2014-04-22 13:56:43 +02:00
Amadeusz Sławiński
049a3bfdfc do proper checks if we are on altscreen or not
fixes screen segfaults with `altscreen on` when using applications making
use of altscreen like mc when resizing screen window

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2014-04-18 20:28:39 +02:00