Andrew Chin
94a35958c2
Revert bb36933472
...
We aren't sure why this change was made, and reverting it appears to help
fix mouse issues in emacs related to text hilighting.
Signed-off-by: Andrew Chin <achin@eminence32.net >
2014-12-08 20:40:38 -05:00
Richard Woodbury
cd1317b273
Conditionally rename main to mosh_main for building under NaCl.
2014-04-26 20:50:01 +00:00
Anders Kaseorg
50152bfcba
mosh-client: Catch all exceptions when ensuring client is shut down
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2014-01-08 18:54:40 -05:00
Anders Kaseorg
56837881fc
Fix MOSH_ESCAPE_KEY validation
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2014-01-08 18:52:08 -05:00
Anders Kaseorg
7c942e6836
Connection::try_bind: Pass port argument 0 as a string
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2014-01-04 04:31:30 -05:00
Anders Kaseorg
b39da20edc
AddrInfo: Fix error message generation when node == NULL
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2014-01-04 04:31:30 -05:00
Anders Kaseorg
5532117984
Revert "Fix mosh-server segfault on startup when run without arguments"
...
This reverts commit 578db45fbf .
The NULL inputs to getaddrinfo are valid in certain cases, and at
least in the case of node, important. The segfault happens not with
getaddrinfo, but with the error message generation below it.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2014-01-04 04:31:02 -05:00
Keith Winstein
578db45fbf
Fix mosh-server segfault on startup when run without arguments
2014-01-04 03:08:57 -05:00
Igor Bukanov
96bf5af1b4
mosh-server: allow startup with PTY with zero width or height like Emacs shell.
...
Closes #472
Closes #473
2014-01-04 02:55:17 -05:00
Keith Winstein
27678941d4
network.cc: Properly close old fd on Socket assignment operator
...
Fix thanks to Igor Bukanov. Closes #470 .
2014-01-04 02:51:37 -05:00
Bazyli Brzóska
492cfa3449
Implement vt100 mouse mode (1000)
...
(closes #461 )
2014-01-04 02:42:26 -05:00
Bazyli Brzóska
bb36933472
xterm extended fix
2014-01-04 02:42:15 -05:00
Bazyli Brzóska
926bbcc746
Implement xterm extended mouse mode
2014-01-04 02:42:15 -05:00
Bazyli Brzóska
5ef7f43479
Implement xterm mouse mode
2014-01-04 02:42:15 -05:00
Anders Kaseorg
553918d3f2
Connection: Support IPv6 addresses
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 09:02:44 -04:00
Anders Kaseorg
110cce3773
Connection: Move socket creation out of setup
...
Once we support IPv6, we won’t be able to create a socket until we
know which address family to use.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 08:58:16 -04:00
Anders Kaseorg
c1f96b37a1
Connection: Store the port number as a string
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 08:26:30 -04:00
Anders Kaseorg
9187e307c6
mosh-client: Print exceptions after the client is shut down
...
Otherwise the printed exception may be immediately hidden when the
terminal exits alternate screen mode.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 08:26:30 -04:00
Keith Winstein
45bba44c83
mosh-server: Allow startup without PTY
2013-07-15 11:20:07 -04:00
Barosl LEE
c6bf3a2025
Implement bracketed paste mode
...
Allow bracketed paste mode-setting control sequences to be passed to the
outer terminal.
Signed-off-by: Barosl LEE <vcs@barosl.com >
Closes #430
2013-07-01 03:18:16 -04:00
Daniel "Tracerneo" Ziółkowski
06561d3500
Add support for ECMA-48 escape sequence for italic
...
Closes #443
2013-07-01 03:08:25 -04:00
Timo J. Rinne
f960a8bcf5
mosh-client: Make terminal escape character configurable
...
Uses environment variable MOSH_ESCAPE_KEY. Defaults to current Ctrl-^
which is somewhat problematic for many non-US keyboards.
Signed-off-by: Timo J. Rinne <tri@iki.fi >
Closes #425 . Closes #215 .
2013-05-17 15:05:33 -04:00
Jérémie Courrèges-Anglas
9314ea18fa
use betoh64 if be64toh not found
...
Instead of looking for htobe64 which is be available both when
be64toh or betoh64 are, check for the latter functions. If we
find betoh64 but not be64toh, use compat #defines. If both
can't be found, search for OSX' OSSwapHostToBigInt64.
Also include sys/types.h in byteorder.h (which is necessary for
byteorder functions on OpenBSD), and incidentally fixes build
of networkfragment.cc.
Fixes build on OpenBSD
Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org >
2013-04-16 11:11:45 +02:00
Jérémie Courrèges-Anglas
24b078a5a1
workaround for systems not providing pselect
...
using a mix of good old select and sigprocmask
Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org >
2013-04-16 11:09:42 +02:00
Keith Winstein
9669178f07
Eliminate ocb.cc test program ( closes #408 )
...
This test doesn't return an error on failure and also was triggering a
stack protector warning on some platforms. We have an end-to-end test of
OCB in src/tests/ocb-aes.cc that seems to work well.
2013-03-27 18:36:03 -04:00
Alexander Chernyakhovsky
172b1e5cef
Cast time_elapsed to int before calling human_readable_duration
...
When attempting to build againt EPEL 5, it was noticed that
human_readable_duration expects an int, but time_elapsed is an
integer. Explicitly static_cast<int>( time_elapsed ) to appease older
compilers.
2013-03-27 02:15:25 -04:00
Keith Winstein
61c6ee6011
Send SIGSTOP to whole process group on suspend ( closes #401 )
2013-03-27 00:26:59 -04:00
Keith Winstein
abf240768f
Cleanups when suspending/resuming with smcup/rmcup
2013-03-11 01:25:18 -04:00
Keith Winstein
1bd38e6dab
Include sys/uio.h to fix OpenBSD build problem ( closes #391 )
2013-03-10 16:58:16 -04:00
Keith Winstein
770e4208cc
DiffServ codepoint and ECN: Roll back to just ECT (no DSCP)
2013-03-10 16:41:44 -04:00
Keith Winstein
093bbc9111
Detached warning: Omit spurious utmp entries (generated by screen)
2013-03-10 16:31:37 -04:00
Anders Kaseorg
a54e6d1661
STMClient::still_connecting: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #390 .
2013-03-10 15:48:12 -04:00
Anders Kaseorg
64f7f7abb2
Dispatcher::get_{dispatch_chars,OSC_string}: Make const
...
Found by cppcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
8c5ded4e6f
Nonce::{cc_str,data}: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
866e1399d5
Socket::operator=: Return non-const reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
d0eeabb51e
human_readable_duration, Terminal::appendstring: Pass strings by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
e2abb8524f
Catch exceptions by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5365d6b21d
Connection::recv: Rethrow the original exception instead of a copy
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5f807dfdf8
src/examples/{encrypt,decrypt}: Read input using C++
...
cppcheck found an exception safety bug in the old code, but like,
really now.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
ecdd2dd648
PRNG: Read input using C++
...
In the old code, cppcheck complained about throwing in the destructor,
but like, seriously?
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
14ef590220
Base64::Base64: Fix exception safety
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
b6f17917f6
Add OCB test program to ‘make check’
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #392 .
2013-03-10 15:47:39 -04:00
Anders Kaseorg
7b9e548aa0
Run tests with ‘make check’
...
The configure --enable-tests flag is no longer needed because
check_PROGRAMS are not built until you run ‘make check’.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
a611ef5821
tests: Default to quiet
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
ea3ad786fa
scripts/mosh: Add --no-init option to disable alternate screen mode
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #384 . Closes #2 .
2013-03-10 15:46:49 -04:00
Anders Kaseorg
ed42d31bda
Put the real terminal in alternate screen mode
...
Closes #2
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:39 -04:00
Anders Kaseorg
2ae960f7f0
Display: Abstract terminfo capability functions
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
03217ddb5a
Move Emulator::{open,close} to Display
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
ba8d013609
main: Don’t leak desired_ip memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #385 .
2013-03-10 15:45:52 -04:00
Anders Kaseorg
b9763b6997
serve: Remove dead store of bytes_read
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00