Commit Graph

1441 Commits

Author SHA1 Message Date
John Hood 7cd4312dae Construct socket name correctly for tmux_check()
In moving this function from e2e-test, I forgot that it depends on a
variable set there.
2017-11-08 19:50:35 -05:00
John Hood cbca234b38 Add a separate test for BCE
This test is properly gated on tmux 2.4.
2017-11-08 19:50:35 -05:00
John Hood 968d56f885 Revert "Extend true color test to include background color erase."
This reverts commit aa96fc867f.

tmux doesn't support BCE until 2.4, so this change fails on 2.3.
2017-11-07 23:14:42 -05:00
John Hood aa96fc867f Extend true color test to include background color erase. 2017-11-06 18:38:54 -05:00
John Hood fa9335f737 Fix issue with incorrect true-color background erase colors. 2017-11-06 18:07:54 -05:00
John Hood 88bb01a50a Make Renditions::sgr() more compact in both code and output. 2017-11-06 10:28:10 -05:00
John Hood ce7ba37ad4 Overlays were getting set to the wrong colors. Fix. 2017-11-06 09:30:57 -05:00
Tom Judge ab31b0f271 Add syslog logging of connections
Log connection change events to syslog in the auth log, logging the PID,
username and remote host.

Also log session begin and end.

Co-Authored-By: John Hood <cgull@glup.org>
2017-11-05 11:54:43 -05:00
John Hood e8331437d3 Minor SGR printf type signedness fixes. 2017-11-04 14:37:11 -04:00
John Hood cf493da7b4 Make Terminal::Renditions smaller, and its members private. 2017-11-04 14:37:11 -04:00
John Hood 0ec85b508e Check tmux version for truecolor test. 2017-11-04 14:37:11 -04:00
Kang.Jianbin 96b5027d9e Add emulation-attributes test for true color. 2017-10-29 20:20:03 -04:00
Kang.Jianbin 6cfa4aef59 Add true color support.
Implement true color support define in:
https://en.wikipedia.org/wiki/ANSI_escape_code

The sequence is:
ESC[ … 38;2;;; … m Select RGB foreground color
ESC[ … 48;2;;; … m Select RGB background color
2017-10-29 20:20:03 -04:00
John Hood 70d1ca444f Perl compile on Appveyor/Cygwin requires perl_pods package 2017-10-27 12:41:07 -04:00
Anders Kaseorg 5433688364 mosh.pl: Fix the error message if getaddrinfo is missing
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2017-10-26 19:43:43 -04:00
John Hood 195ef46561 Add Perl compile
This helps catch Perl syntax/version/dependency issues at build time
rather than run time.
2017-10-25 23:02:10 -04:00
Keith Winstein e9c3bbd364 debian/control: update standards version 2017-08-24 15:11:29 -07:00
Keith Winstein 0cec06c0cd debian/changelog: update for Debian 1.3.2-2 release 2017-08-24 15:10:55 -07:00
John Hood befdb96ad1 Fix a minor uninitialized-variable warning. 2017-08-23 16:21:53 -04:00
John Hood f3fa4211a2 Always use non-blocking sockets for recvmsg() 2017-08-23 15:09:43 -04:00
John Hood b11d524bb7 Restore asserts and error handling
A couple of them got improved out of existence.
2017-08-23 15:09:43 -04:00
Keith Winstein 790b479f8a terminalframebuffer.cc: ignore unknown renditions
(revert assert(false) added by 4835dcf)
(fixes #918)
2017-08-17 13:14:52 -07:00
John Hood 6f9de49c27 Safeguard tmux sanity check. 2017-08-11 12:59:39 -04:00
John Hood a40b67691a Remove various assert(constant) calls
These cause warnings from static checkers, and seem to lead to spurious
GCC7 -Wmaybe-uninitialized.
2017-08-06 23:12:05 -04:00
John Hood 93daa5ac3b Fix Debian GCC7 FTBFS: remove default constructors 2017-08-06 23:09:07 -04:00
John Hood 6ebc795124 Remove an unnecessary conditional. 2017-08-06 22:22:35 -04:00
John Hood 9663edb7c7 Do not set function parameters. 2017-08-06 22:22:32 -04:00
John Hood 2b3034b320 Remove private static class methods. 2017-08-06 22:22:29 -04:00
John Hood 4835dcf5ee Various switch statement fixes. 2017-08-06 22:22:25 -04:00
John Hood 3346419724 Remove excessive parentheses
There are many more.
2017-08-06 22:22:20 -04:00
John Hood 1ae23b4dcc Prefer early exit/break to large conditional blocks.
Some of these are large and contain smaller unrelated refactors.
2017-08-06 22:22:09 -04:00
John Hood b1a6f7c144 Eliminate unnecessary, trailing else conditional blocks. 2017-08-06 22:22:05 -04:00
John Hood 43785eb820 Collapse nested conditionals. 2017-08-06 22:21:56 -04:00
John Hood 8ca8a54e11 Split a long printf format string. 2017-08-06 22:21:38 -04:00
John Hood 9df71ae5ad Add support for OCLint static checker. 2017-08-06 22:00:24 -04:00
John Hood 4f068d7261 Improve targets for existing static checkers. 2017-08-06 21:59:57 -04:00
Anders Kaseorg 271e8ba318 Remove unused Action::operator==
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2017-08-02 22:59:42 -04:00
John Hood 2b724d5868 Simplify some conditionals in terminaloverlay.cc. 2017-08-02 22:56:19 -04:00
John Hood 42d2b5d029 Use shared_ptr and references for Actions.
This slows terminal emulation slightly.
2017-08-02 22:07:02 -04:00
John Hood c6c7f09954 Deref a shared pointer in a per-byte loop 2017-08-02 22:07:02 -04:00
John Hood 8f68400c13 Convert new/delete to shared_ptr. 2017-08-02 22:07:02 -04:00
John Hood eef77fd5a5 Convert strdup/free to string 2017-08-02 22:07:02 -04:00
John Hood 6321b1d9c5 Remove redundant malloc/free 2017-08-02 22:07:02 -04:00
John Hood 54ac38bfd8 remove unneeded new/delete in Compressor 2017-08-02 22:07:02 -04:00
John Hood 33afb3abc1 Remove redundant new/delete 2017-08-02 22:07:02 -04:00
John Hood a3b05e69b6 Add missing shared::make_shared<T>() 2017-08-02 22:07:02 -04:00
John Hood 4902970486 Fix utempter #ifdefs. 2017-08-02 22:07:02 -04:00
John Hood c8580d1fb6 Rename and document --predict-overwrite. 2017-08-02 21:56:32 -04:00
John Hood c49c67cecf --predict-overwrite was still inserting one column sometimes. Fix. 2017-08-02 21:56:32 -04:00
John Hood 8aac3cc927 Allow non-inserting prediction.
This may be useful for users who find prediction's activity right of
the cursor distracting.

Prediction underscoring is still a little weird sometimes, it replays
a history of known/unknown changes as acks come in from the server.
2017-08-02 00:31:37 -04:00