summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Copyright update for 2020Alexander Naumov2020-01-101-1/+1
|
* Typo DEBUGAlexander Naumov2020-01-101-1/+1
|
* Fix return code of '--version' and '-v'Alexander Naumov2020-01-101-4/+6
| | | | Bug #57571
* Create TERMCAP entries limited to 1023 bytes by default.Scott Shambarger2019-12-285-19/+46
| | | | | | | | | | | | TERMCAP_BUF defaults to 1023 to create TERMCAP entries that work on most systems. To save space, TERMCAP is unwrapped, and vt220 extra keys are skipped (unless TERMCAP_BUF > 1023); navigation keys are still included. Entries larger than TERMCAP_BUF are now truncated, and no longer Panic screen. Termcap entries are still wrapped when saved to a file. Signed-off-by: Scott Shambarger <devel@shambarger.net>
* Fix coredump on xterm and rxvtChristoph Moench-Tegeder2019-12-281-1/+1
| | | | | | | | | | | Here's the rub: with TERM=xterm (or rxvt, for that matter), Km ("key_mouse", "Mouse event has occured") is not set (and therefore NULL), but InitTermcap() (termcap.c:230) happily tries to strdup() that, which gets us that segfault. As a band-aid, catch that NULL and don't strdup(). Signed-off-by: Marcin Cieślak <saper@saper.info>
* Make closeallfiles() fasterAmadeusz Sławiński2019-12-281-3/+30
| | | | | | | | | | | Optimize startup time, making closeallfiles() faster, by doing less system calls. Instead of calling close for each possible file, use poll() to check if file exist at all. On linux with open file limit set to 1048576, it should do 1024 poll() calls instead of 1048576 close(). Bug: 55618 Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Using 'https' instead of 'http'Alexander Naumov2019-11-0956-57/+57
|
* Release v.4.7.0v.4.7.0Amadeusz Sławiński2019-10-024-10/+14
| | | | Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Update ambiguous and wide characters tables to Unicode 12.1.0Amadeusz Sławiński2019-10-011-15/+22
| | | | Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Fix broken mouse after ncurses 6.1Amadeusz Sławiński2019-09-072-4/+7
| | | | | | | | | | | | | | ncurses 6.1 changed kmous capability from "\e[M" to "\e[<". It seems to be done to signal that terminal supports sgr mouse mode. screen assumed that if kmous is set to "\e[M" it is on xterm compatible terminal anyway, so just dynamically detect which one is used and override relevant kmapdef. InitKeytab() is moved, so kmapdef[] can be overriden before initialization, as InitTermcap() needs to run first, as far as I can tell this should have no consequences. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Clean whole buffer if we don't want to parse itAmadeusz Sławiński2019-04-172-6/+6
| | | | | | | | | | Fixes problem when pressing arrows in some prompts causes arrows to stop in other places. For example pressing up arrow in 'kill --confirm' prompt stops up arrow from working on 'windowlist' Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Copyright update for 2019Alexander Naumov2019-03-291-1/+1
|
* Typo in man pageAlexander Naumov2019-03-291-1/+1
| | | | bug #56027
* Fix blanker to work when screen is suid rootScott Shambarger2019-01-274-16/+47
| | | | | | | | | | | | | | | * Change RunBlanker to call OpenDevice so permissions on slave PTY are correctly set. * Update handling of file descriptors after fork to be similar to ForkWindow on at pty (fixes debug and leaked descriptors) * DEBUG now creates screen.blanker to debug blanker fork * Allow display of error message when display blocked by blanker (because message is probably from blanker failing to start) Bug: 55512 Signed-off-by: Scott Shambarger <devel@shambarger.net> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Prevent Panic causing Panic, and children removing socketsScott Shambarger2019-01-274-2/+18
| | | | | | | | | | | | | | | * Set eff_uid/eff_gid after setuid/setgid to prevent nested Panic MakeClientSocket calls xseteuid(eff_uid=0) - results in nested Panic and SendErrorMsg not getting sent. * Set ServerSocket to -1 after fork so that child Panic doesn't remove socket in eexit. Bug: 55511 Applied with some modifications Signed-off-by: Scott Shambarger <devel@shambarger.net> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Fix confusing indentation on several placesVáclav Doležal2018-11-183-38/+38
| | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Fix possible unterminated stringVáclav Doležal2018-11-181-1/+7
| | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* Fix for nomem handling in resize.c:ChangeWindowSize()Václav Doležal2018-11-181-20/+20
| | | | | | | | Move `nomem' label of ChangeWindowSize() to the end of function and add test for value of `nhlines' Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* Revert "those 0 assignment made rest of code totally not working"Václav Doležal2018-11-181-4/+1
| | | | | | | | | | | | | | This reverts commit ff98d7ff5847e07a55b0c40c2ccc3bc430226ca0. This can potentially cause double-free. `nmlines' and `nhlines' should be freed in preceding lines. `nmlines' and `nhlines' are not used in the rest of the function except in `nomem' label and their valuse are copied into `p', so their value should be zeroed. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* Fix file descriptor leakVáclav Doležal2018-11-181-1/+3
| | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* Use memcpy(3) in string substitutionVáclav Doležal2018-11-181-1/+1
| | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* ansi: terminate xterm OSC response the same way as the requestLubomir Rintel2018-11-184-6/+12
| | | | | | | | | There's two way to terinate an OSC: ST (\033\\) or BEL (\a). Use whatever the original request used instead of always forcing a BEL. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> (cherry picked from commit 11a74b838216bf3c90eb4c3369592f2632838095) Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* ansi: add support for xterm OSC 11Lubomir Rintel2018-11-183-9/+13
| | | | | | | | | | | | | | | | It allows for getting and setting the background color. Notably, Vim uses OSC 11 to learn whether it's running on a light or dark colored terminal and choose a color scheme accordingly. Tested with gnome-terminal and xterm. When called with "?" argument the current background color is returned: $ echo -ne "\e]11;?\e\\" $ 11;rgb:2323/2727/2929 Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> (cherry picked from commit 7059bff20a28778f9d3acf81cad07b1388d02309) Signed-off-by: Amadeusz Sławiński <amade@asmblr.net
* apply patch by Therese fixing some doc issuesTherese Godefroy2018-10-121-6/+6
| | | | | This fixes some issues when documentation is generated for online viewing.
* doc: fix typosSvyatoslav Mishyn2018-07-242-8/+8
| | | | | | | | | | | | | | | | | | Hi there, just found a few typos, see attachment. (please, CC me) Thanks. -- https://www.juef.space/ From 745ba353867142d3e00f4d2ab06962ba0d3aaaab Mon Sep 17 00:00:00 2001 From: Svyatoslav Mishyn <svyatoslav.mishyn@gmail.com> Date: Wed, 4 Jul 2018 21:40:48 +0300 Subject: [PATCH] doc: fix typos
* remove character substitutionAmadeusz Sławiński2018-06-211-17/+16
| | | | it may be not compatible with some man page viewers
* fix man pageEric S. Raymond2018-06-211-1/+1
|
* manpage: Explain window permissions in a tableMarcin Cieślak2018-05-311-18/+17
|
* manpage: Use monospaced font to render example of "displays"Marcin Cieślak2018-05-311-0/+2
|
* manpage: Indent both examples for readregMarcin Cieślak2018-05-311-1/+1
|
* manpage: keep nonblock and status parameters on the same lineMarcin Cieślak2018-05-311-2/+2
|
* manpage: explain flow control state indicators with a tableMarcin Cieślak2018-05-311-9/+10
|
* manpage: Remove horizontal lines on large tablesMarcin Cieślak2018-05-311-4/+113
| | | | | | | | | | Remove "allbox" tbl option from large keybinding table. When formatting for print, large tbl tables need to be handled specially to split nicely across the pages; instead we just add horizontal lines and we let them overflow the pages. The input translation table seems to fit nicely on one page and is left as is with the "allbox" option.
* manpage: add vertical space after bindkey examplesMarcin Cieślak2018-05-311-0/+5
| | | | | | | | | | | | | | bindkey examples seem to be glued to their following descriptions. This looks bad in the printable versions, so give it some space. Alternatively we could possibly reverse the indentation and use something like this: bindkey -d Show all of the default key bindings. but this is inconsistent with other examples.
* manpage: Print = instead of double horizontal lineMarcin Cieślak2018-05-311-1/+1
| | | | | | | | | | | | | | | "Keypad =" table entry had a double horizontal line instead of a single "=" when printed with troff. From "Tbl -- A Program to Format Tables" by M. E. Lesk: Single column horizontal lines -- An input table entry containing only the character (...) = is taken to be a single or double line extending the full width of the column. Such lines are extended to meet horizontal or vertical lines adjoining this column. To obtain these characters explicitly in a column, either precede them by \& or follow them by a space before the usual tab or newline.
* this actually should be 3 dotsAmadeusz Sławiński2018-05-151-1/+1
| | | | they are part of syntax
* Fix [bug #53552] wording in the manpageMarcin Cieślak2018-05-071-1/+1
|
* groff warning: can't find font "p"Marcin Cieślak2018-05-071-1/+1
|
* Fix (login) entry in the default bindingsMarcin Cieślak2018-05-071-0/+1
| | | | | | | | nroff warning: tbl:src/doc/screen.1:551: excess data entry `(lastmsg)' discarded tbl:src/doc/screen.1:553: excess data entry `Repeat the last message displayed in the message line. ' discarded
* Provide fallback for Unicode ellipsisMarcin Cieślak2018-05-071-17/+18
|
* Fix intendation around "displays"Marcin Cieślak2018-05-071-18/+20
| | | | Remove UTF-8 quotes
* screen v4 has no truecolor support, so remove it from manpageAmadeusz Sławiński2018-04-041-10/+0
|
* Update Changelog (applying patches - bug#43223)Alexander Naumov2018-02-243-0/+8
| | | | | | | | | | Cross-compilation support Thanks for patches to Maarten ter Huurne <maarten@treewalker.org> and Jussi Kukkonen <jussi.kukkonen@intel.com> Thanks for testing these (4.6.2) on ARM (Xilinx Zynq) to Ben Kamen <ben@benkamen.net>
* [PATCH 4/4] Avoid mis-identifying systems as SVR4Jussi Kukkonen2018-02-241-2/+12
| | | | | | | | | | | | | | | | | Linux can be misdetected as SVR4 because it has libelf installed. This leads to linking with libelf, even though no symbols from that library were actually used, and to a workaround for a buggy getlogin() being enabled. It is not documented which exact SVR4 system had the bug that the workaround was added for, so all I could do is make an educated guess at the #defines its compiler would be likely to set. Modified from patch by Maarten ter Huurne. Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223] Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
* [PATCH 3/4] Skip host file system checks when cross-compilingJussi Kukkonen2018-02-241-4/+19
| | | | | | | | Modified from patch by Maarten ter Huurne. Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223] Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
* [PATCH 2/4] Provide cross compile alternatives for AC_TRY_RUNJussi Kukkonen2018-02-241-12/+20
| | | | | | | | Modified from patch by Maarten ter Huurne. Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223] Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
* [PATCH 1/4] Remove redundant compiler sanity checksJussi Kukkonen2018-02-241-27/+0
| | | | | | | | | | | AC_PROG_CC already performs sanity checks. And unlike the removed checks, it does so in a way that supports cross compilation. Modified from patch by Maarten ter Huurne. Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223] Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
* support sgr mouse moseRyan2018-02-077-48/+318
| | | | Bug: #37206
* update copyright for 2018Alexander Naumov2018-01-113-6/+10
|
* fix: configure option "--disable-use-locale" is not workingAmadeusz Sławiński2017-12-162-2/+6
| | | | Bug: 52663