Commit Graph

1434 Commits

Author SHA1 Message Date
Naïm Favier bb34ce585e Add tmux and alacritty to title_term_types
Resolves #1130
2021-08-26 19:55:08 +02:00
Andrew Chin e023e81c08 Merge pull request #1125 from black-desk/master
.gitignore: add autogenerated files
2021-07-21 10:23:25 -04:00
black_desk 3a0e19075b .gitignore: fix path 2021-07-21 13:13:02 +08:00
black_desk 232c6bf19e .gitignore: add compile_commands.json 2021-07-21 13:12:03 +08:00
Andrew Chin 68035c18d4 Merge pull request #1146 from buzztiaan/patch-1
fixed the irc channel link in README
2021-07-13 16:17:44 -04:00
buZz cf8a680f2d fixed the irc channel link in README 2021-07-13 22:02:41 +02:00
Harry Sintonen 57b97a4c91 Use CLOCK_MONOTONIC_RAW when available 2020-12-05 21:21:14 +02:00
John Hood 03087e7a76 If exec()ing the remote command fails, pause briefly
This makes the resulting error from mosh-server visible in ordinary usage.
2020-05-18 00:01:05 -04:00
John Hood 12199114fe Move generated includes to their own directory to avoid conflicts.
Fixes #1051, mosh fails to build on case-insensitive filesystems.

XXX This isn't perfect because autoconf/automake drop several extra
files in the directory anyway.
2020-05-17 23:55:09 -04:00
John Hood 609fb91fbc Use Travis Homebrew addon. 2020-05-17 22:29:24 -04:00
John Hood 8f7c29dece "Fix" Travis OS X builds. 2020-05-17 01:20:25 -04:00
Anders Kaseorg 0cc492dbae configure: Add test for whether protoc matches protobuf
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-02 22:42:21 -07:00
Anders Kaseorg feced5910c configure: Fix FD_ISSET test under -Werror
The uninitialized variable warning from T x; broke the test if the
user passed CXXFLAGS='-O2 -Wall -Werror'.  (Users shouldn’t do that;
our own --enable-compile-warnings=error option was unaffected.)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-02 22:42:21 -07:00
Anders Kaseorg 7c10080766 configure: Fix forkpty test code indentation
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-02 22:42:21 -07:00
Anders Kaseorg 8682f39fa5 configure: Remove unused tests
These tests only define HAVE_* macros that we never check.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-02 22:42:20 -07:00
Anders Kaseorg e009ba4e76 configure: Set language to C++ globally
As of commit dd941df19d, we no longer
build any plain C, except within AM_PROG_AR.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-02 22:42:20 -07:00
John Hood b1da700535 Fix Appveyor build.
Change the openssl-devel package to libssl-devel.  Cygwin still has an
"obsolete" (essentially virtual) package for openssl-devel, but it
doesn't seem to work properly on Appveyor's Cygwin install.

Protobuf >= 3.6.0 requires C++11, which I added support for last year.
But when I did that, I requested strict ANSI C++ compatibility, which
causes Cygwin/newlib's libc feature test macros to be set to disable
(at least) POSIX.1 extensions.  Let the Autoconf macro use its default
instead (prefer GNU/extended C++, accept anything).
2019-07-10 12:56:52 -04:00
Anders Kaseorg 335e3869b7 configure: Another flag for macOS distcheck: -Wno-error=nested-anon-types
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-06-12 22:51:08 -07:00
Anders Kaseorg f7a054c3e7 configure: Add --enable-static-LIBRARY options for selective static linking
Statically linking mosh-server with glibc isn’t a great idea for
various reasons (nsswitch modules, locale format incompatibilities).
But we can provide most of the benefits of static linking by allowing
specific library dependencies to be linked statically using -Bstatic
and -Bdynamic.  The full set is enabled by

    ./configure --enable-static-libraries

which is equivalent to

    ./configure --enable-static-libstdc++ --enable-static-libgcc \
      --enable-static-utempter --enable-static-zlib --enable-static-curses \
      --enable-static-crypto --enable-static-protobuf

and results in binaries whose only runtime library dependencies are
provided with libc:

    $ ldd src/frontend/mosh-server
            linux-vdso.so.1 (0x00007ffe0b377000)
            libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fa0d9970000)
            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa0d97e3000)
            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa0d97c2000)
            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa0d95d8000)
            /lib64/ld-linux-x86-64.so.2 (0x00007fa0d9f6a000)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-10 15:49:43 -08:00
Anders Kaseorg 6d30b18ccb configure.ac: Fix underquoted AC_HELP_STRING call
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-10 15:49:43 -08:00
Peter Edwards c3a2756065 Apply latest consecutive resize, not earliest.
If there are consecutive resize events in the userstream to be applied in
"serve", we should apply the last/latest one in the sequence, not the
first/earliest one.

This fixes a problem where a flurry of resize events (eg, generated
by a window manager resizing the client), can cause mosh to have an
out-of-date idea as to what the physical geometry of the window is.
2019-01-04 04:06:30 -08:00
John Hood 944fd6c796 Restrict cppcheck to src/ directory to avoid Git worktrees. 2018-08-29 22:44:04 -04:00
John Hood 71829ff631 unicode-later-combining.test: Document slightly. 2018-08-29 22:44:04 -04:00
John Hood fecd4ee29b Some more namespace hygiene for "using decl;". 2018-08-15 19:28:38 -04:00
John Hood 756f4f8e98 Remove "using namespace std;". 2018-08-15 19:27:23 -04:00
John Hood fb23168ed9 Always use std::min, std::max. 2018-08-15 19:26:27 -04:00
John Hood e5f8a826ef Fix bind(2) being misinterpreted as std::bind() with libc++7 on FreeBSD.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230624
2018-08-15 01:11:48 -04:00
John Hood 4aff80b872 Fix more inappropriate const_iterator usage. 2018-08-03 19:39:08 -04:00
John Hood 9a606c2f3d src/statesync/completeterminal.cc: fix bad iterator type 2018-08-03 17:32:07 -04:00
John Hood 8ac80db419 C++03 bound functions are not available in C++17; remove
This makes me a little sad, it's time to move to C++11 or greater.
2018-08-03 16:13:47 -04:00
John Hood ace6324a77 Display CPU count on Travis/MacOS. 2018-08-03 15:16:55 -04:00
John Hood 5cdbad68b8 Ignore select() errors on Travis/MacOS. 2018-08-03 15:16:55 -04:00
John Hood 3ea9e3e5a4 mosh-server: improve error logging
Also stop using _exit(), believed unnecessary now with proper stdio
flushing.
2018-08-03 15:16:55 -04:00
John Hood 26143e9a63 Allow Travis to use its preferred MacOS/XCode image. 2018-08-02 22:27:26 -04:00
John Hood 9ba07296f9 Fix Homebrew failure on Travis.
As predicted, 'brew unlink python' is no longer needed.
2018-08-02 21:42:49 -04:00
John Hood 6fe7cde94d Require C++11 if protobuf version >= 3.6.0 is installed
This shouldn't require C++11 when not required.

This hack may not always detect when C++11 *is* required,
in which case a little autoconf tweaking may be needed
to get a good compile.
2018-08-02 19:09:21 -04:00
John Hood 60859e9d09 Fix/workaround Homebrew failure on Travis MacOS XCode 9.1 image.
The 'brew unlink python' can probably be removed for later images.
2018-04-12 13:25:05 -04:00
John Hood 2a5b5410b2 Fix gcc8 snprintf truncation warning. 2018-04-11 18:10:59 -04:00
Anders Kaseorg 10dca75fb2 Type Select::got_signal as volatile sig_atomic_t
Fixes #634.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-01-18 19:25:05 -05:00
Anders Kaseorg d4ce0d4f4f mosh.pl: Allow shell expansion of --server with --local
Fixes #946, matching the behavior of --server without --local.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2017-12-02 23:00:33 -05:00
Andrew Chin 1e526aa140 Merge pull request #944 from mojoTX/bugfix/fix-issue-942-detached-sessions
Use HAVE_UTEMPTER instead of HAVE_UPTEMPTER
2017-11-22 19:23:30 -05:00
Michael Jarvis 21d5dca682 Use HAVE_UTEMPTER instead of HAVE_UPTEMPTER
Fix typo for issue #942:
- mosh-server incorrectly reports detached session in utmp/wtmp
2017-11-21 06:05:33 -06:00
John Hood 6fb4d0dfe2 Switch to MacOS 10.12 for builds and deployment target.
10.10 is now obsolete, and installing packages from Homebrew on Travis
takes a long time because everything is built from source.
2017-11-08 19:57:24 -05:00
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