Commit Graph

1374 Commits

Author SHA1 Message Date
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
John Hood 91de8901f5 Don't do prediction on large pastes into mosh-client.
Fixes #482, memory use blowup on large pastes.  mosh is still pretty slow
about copying pastes through, though.
2017-08-02 00:31:37 -04:00
John Hood 48e9dd169f Reformat printed strings in source
Consolidate multiple printfs.
Break up multiline strings with string concatentation, for better
 clarity and shorter lines.
Use fputs where appropriate.

This also has the benefit of producing a single constant string with
copyright and versions in the binaries.
2017-08-02 00:02:52 -04:00
Alex Cornejo 4b240ac033 support osc 52 clipboard copy integration.
This feature is particularly relevant for mosh for chrome (which also
used in windows I believe).
2017-07-31 23:17:24 -04:00
Keith Winstein 04f6dafb58 debian/control: update standards version 2017-07-23 11:09:10 -07:00
Keith Winstein cf73e1f879 Update version to 1.3.2 (fixes Debian revision inversion) 2017-07-21 14:53:57 -07:00
John Hood dedb2c5b6f mosh 1.3.1 2017-07-20 17:45:41 -04:00
John Hood e054a86ecc mosh 1.3.1-rc3 2017-07-19 22:31:28 -04:00
John Hood 7c68667bc0 Explicitly set tmux window size in tests.
Recent versions of tmux master gave us an 80x23 window.  tmux has been
fixed to default to 80x24, and also to allow setting window sizes in
control mode.  These flags fortunately do not conflict with older
versions tmux.  So we use them to avoid problems going forward.
2017-05-28 21:19:03 -04:00
John Hood 73fc71376a Add a pause mechanism for debugging tests. 2017-05-28 19:28:04 -04:00
John Hood d15d342df3 Tests: symlink to tmux sockets
This makes it easier to attach a second client to inspect a test.
2017-05-28 19:27:39 -04:00
John Hood 2f89ac0ac7 Make tmux version check work with tmux master. 2017-05-28 13:19:12 -04:00
Giel van Schijndel cb91788d05 When binding on the IPv6 any address bind for IPv4 too
On some Linux systems this is the default. On most other operating
systems accepting IPv4 connections on a IPv6 socket only happens when
explicitly requested. Even on Linux it depends on the sysctl config.

This change makes it independent from the system's defaults whether IPv4
connections will be accepted too through the same socket.
2017-05-22 22:33:45 -04:00
John Hood 9f54cc76d2 Detect broken tmux in tests
This works around Debian kfreebsd build failures.
2017-05-21 12:49:18 -04:00
John Hood b17c5795f7 Update to 1.3.1-rc2. 2017-05-19 19:29:34 -04:00
John Hood a6d580a7c5 Set locale more correctly in tests
This fixes Debian builds which only have LC_ALL=POSIX set.
2017-05-18 23:22:55 -04:00
Keith Winstein 9cd9105cec Update changelog release dates to May 18 for 1.3.1-rc1 2017-05-18 00:52:49 -04:00
John Hood 561ac25d76 Version 1.3.1 rc1. Update changelogs. 2017-05-08 23:39:48 -04:00