summaryrefslogtreecommitdiff
path: root/src/window.h
Commit message (Collapse)AuthorAgeFilesLines
* Increase permitted length of OSCAmadeusz Sławiński2020-02-051-1/+1
| | | | | | | | | | hyperlink feature used by some terminals requires lots of characters https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#length-limits mentions around 2083 characters, set it to a bit more. Bug: 57718 Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Fix out of bounds access when setting w_xtermosc after OSC 49Amadeusz Sławiński2020-02-051-1/+1
| | | | | | | | | | | | | | | | echo -e "\e]49\e; \n\ec" crashes screen. This happens because 49 is divided by 10 and used as table index resulting in access to w_xtermosc[4], which is out of bounds with table itself being size 4. Increase size of table by 1 to 5, which is enough for all current uses. As this overwrites memory based on user input it is potential security issue. Reported-by: pippin@gimp.org Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* Using 'https' instead of 'http'Alexander Naumov2019-11-091-1/+1
|
* Fix blanker to work when screen is suid rootScott Shambarger2019-01-271-0/+1
| | | | | | | | | | | | | | | | * 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) * Allow display of error message when display blocked by blanker (because message is probably from blanker failing to start) Bug: 55512 Cherry-picked form screen-v4, with some modifications Signed-off-by: Scott Shambarger <devel@shambarger.net> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* add persistent bits to window group display optionsEthan Warth2018-11-181-0/+4
| | | | | | | | | | | | | | | | Windowlist has two toggles that affect its output: the list can be sorted in either index or MRU order, and the list can contain either just immediate children windows of all descendant windows. Since window groups use the same code for their own output, they also support these toggles. However, in the current code base, these toggles are reset to index ordering and display of immediate children only every time a particular window group is swapped out of and back into a pane. Amadeusz: added commit message + changed variable names + some reformatting Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
* clean up after refactoringAmadeusz Sławiński2018-04-111-2/+0
| | | | finally we can get rid of wtab and maxwin
* add function to search for window by numberAmadeusz Sławiński2018-04-111-0/+1
|
* create bidirectional list of windowsAmadeusz Sławiński2018-04-111-0/+2
|
* rename windows to mru_window and window->w_next to window->w_prev_mruAmadeusz Sławiński2018-04-111-1/+1
| | | | | | | | | those variables are used to maintain most recently used list and I want to reuse w_next to make proper list of windows instead of wtab when we loop it doesn't make difference in which order we go, so we may as well keep looping using mru list (and review later when we introduce in order list)
* support sgr mouse moseRyan2018-02-071-0/+1
| | | | | | | | | cherry-picked from v4 version biggest difference is formatting some type changes due to use of typedefs (ie struct canvas -> Canvas) Bug: #37206
* change outbut buffer len to size_tAmadeusz Sławiński2017-09-041-1/+1
|
* begin viewing scrollback buffer at the first line of output instead of at ↵Guo Ci2017-06-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | the start of the scrollback buffer This issue has been discussed before: https://bbs.archlinux.org/viewtopic.php?id=108640 Copy mode and “hardcopy -h” always begin at the start of the scrollback buffer. If a user sets a large scrollback limit with little output, then copy mode and the file written by “hardcopy -h” will begin with many blank lines before the first line of output. The attached patch limits the scrollback buffer traversal to begin at the first line of output, instead of the beginning of the scrollback buffer. Also, code for moving to %age of buffer is changed to use float division so that two different rep_cnt will not jump to the same location, except for buffers less than 100 lines. Previously, the computed line number is rounded down to the nearest 100th due to integer division. Bug: 49377
* revvid is boolAmadeusz Sławiński2016-11-231-1/+1
|
* remove unused field from Window structAmadeusz Sławiński2016-11-231-1/+0
|
* add dynamicatitle and defdynamictitle commandsAmadeusz Sławiński2016-10-191-2/+4
| | | | | | | | 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>
* int -> size_t in window.[ch]Amadeusz Sławiński2016-10-151-2/+2
|
* move execvpe definition to headerAmadeusz Sławiński2016-09-291-0/+1
| | | | | needed for display.c which also uses execvpe on platforms that don't have it
* change various pid variables type to pid_t from intAmadeusz Sławiński2016-06-201-3/+3
|
* make utmp log windows properlyAmadeusz Sławiński2016-06-181-1/+1
|
* rename define UTMPOK to ENABLE_UTMPAmadeusz Sławiński2016-06-181-1/+1
|
* rename define BUILTIN_TELNET to ENABLE_TELNETAmadeusz Sławiński2016-06-181-1/+1
|
* Move ResetWindow() where it belongsAmadeusz Sławiński2016-06-181-0/+1
|
* make all header files self-contained and include it in the source fileSimon Ruderich2016-02-071-0/+4
| | | | | | | | Including the header in the source file guarantees matching signatures, thus preventing subtle errors. Self-contained headers document the required headers and makes using it easier to use the header in new source files.
* move WindowDied() to proper fileAmadeusz Sławiński2016-01-151-0/+1
|
* convert aflag to boolAmadeusz Sławiński2015-12-221-2/+2
|
* struct logfile -> LogAmadeusz Sławiński2015-12-061-1/+2
|
* more int -> bool conversionsAmadeusz Sławiński2015-12-061-1/+1
|
* make insert mode booleanAmadeusz Sławiński2015-12-061-1/+1
|
* cleanup flowflag handlingAmadeusz Sławiński2015-12-061-1/+2
|
* more type conversions to boolAmadeusz Sławiński2015-12-061-6/+6
|
* constify LayFuncsAmadeusz Sławiński2015-09-021-1/+1
|
* int -> size_t for size typesAmadeusz Sławiński2015-09-021-3/+3
|
* utmp -> utmpxAmadeusz Sławiński2015-07-281-1/+1
| | | | also remove IFDEF path without getutxent/depend on POSIX functionality
* C99-style designated initializers for NewWindow instances in window.cMike Gerwitz2015-07-071-1/+0
| | | | Keep-in-sync comments removed, since this solves that problem splendidly.
* Fix implicit declarations after mergeAmadeusz Sławiński2015-07-041-0/+1
|
* Began refactoring winmsg code into its own fileMike Gerwitz2015-06-261-0/+3
| | | | | | | This is really to prepare for refactoring MakeWinMsgEv, which is rather large and unnecessarily difficult to follow; this will make me much more confident that I actually grok the code before proceeding with the unicode changes and will further help others getting into the project.
* execvpe defined in unistd.hMike Gerwitz2015-06-261-1/+1
|
* some changes to WindowAmadeusz Sławiński2015-06-261-1/+1
|
* windows have unsigned numbersAmadeusz Sławiński2015-06-261-1/+1
|
* move global variables declarations to corresponding headersAmadeusz Sławiński2015-06-261-0/+11
|
* remove fwddecl.hAmadeusz Sławiński2015-06-261-9/+8
|
* use Event type instead of struct eventAmadeusz Sławiński2015-06-261-10/+10
|
* use Display type instead of struct displayAmadeusz Sławiński2015-06-261-5/+5
|
* use Layer type instead of struct layerAmadeusz Sławiński2015-06-261-2/+2
|
* forward declarations for types make more sense in a separate fileAmadeusz Sławiński2015-06-261-2/+4
| | | | | it's easier to see what's going on, and it looks better included in headers instead of explicitly put in
* use Window type instead of struct winAmadeusz Sławiński2015-06-261-13/+13
|
* more header stuffAmadeusz Sławiński2015-06-251-1/+14
| | | | | | | move forward declarations of functions from extern.h to their own header files fix inclusion option passed in Makefile cosmetic stuff on some structs
* include headers once + some struct reformattingAmadeusz Sławiński2015-06-251-172/+167
|
* Support "bracket paste mode" and cursor-style manipulationHayaki Saito2015-06-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hello, lists This patch adds the following two features to GNU Screen: - Bracket Paste Mode (DECSET/DECRST 2004) - DECSCUSR(cursor style manipulation) By using "bracketed paste mode", the pasted text is bracketed with special control sequences. DECSCUSR can change cursor style and shape (blink/steady, block/Vertical bar/horizontal bar). ref: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html These days, many of xterm-compatible terminal emulators support these features. But current GNU Screen blocks them. This patch manages states of "Bracket Paste Mode (DECSET/DECRST 2004)" and DECSCUSR(cursor style manipulation), for each of screens. Please check it. Hayaki Saito <user@zuse.jp> https://lists.gnu.org/archive/html/screen-devel/2013-03/msg00000.html
* add basic multiwindow input supportAmadeusz Sławiński2015-06-251-0/+1
|