Keegan McAllister
ba9b16aafa
Fully initialize the argument to TIOCSWINSZ
...
struct winsize contains fields other than ws_col and ws_row. To avoid passing
uninitialized data to TIOCSWINSZ, initialize it first using TIOCGWINSZ.
Found by Valgrind.
(closes #85 github issue)
2012-03-31 15:41:34 -04:00
Keith Winstein
9a7f3ad33d
Print warnings when IUTF8 missing
2012-03-31 15:20:30 -04:00
Quentin Smith
f2a1271dee
-lpoll must come before -lm (which pulls in the system poll implementation)
2012-03-28 14:32:32 +02:00
Quentin Smith
7a4ef054c3
Allow the user to specify CFLAGS and LIBS for linking with poll, and test for -lpoll if necessary
2012-03-28 14:32:32 +02:00
Quentin Smith
44ab7360bc
Fix poll.h location
2012-03-28 14:32:32 +02:00
Keegan McAllister
0d6875b8be
Don't pass -lutil when linking mosh-client
...
On Android we lack libutil, and we configure with --disable-server.
2012-03-26 20:08:56 -04:00
Keegan McAllister
7ed5174aa7
Move some locale handling into one place
2012-03-26 20:08:55 -04:00
Keith Winstein
26fc88634d
Update documentation to version 1.1
2012-03-22 19:09:40 -04:00
Keith Winstein
ab94397726
Fix copy-paste error in port argument check
2012-03-21 22:45:58 -04:00
Keith Winstein
0b0ff72f40
Don't display blue "Connecting..." bar immediately
2012-03-21 19:21:02 -04:00
Keegan McAllister
9f38c76699
Explicitly disable dumping core ( closes #72 )
...
This is a precaution to avoid saving sensitive data to disk, e.g. session keys.
We expect that corefiles are not world readable, but they're still sitting on
the physical disk and it's safer just to disable creating them.
GitHub issue #71 deals with a similar concern.
2012-03-21 18:41:51 -04:00
Keith Winstein
ec0c8c8984
Allow immediate return on initial spins
2012-03-21 18:00:36 -04:00
Keith Winstein
ad3877626d
Use _exit() for hygiene (per Anders Kaseorg)
2012-03-21 17:32:46 -04:00
Keith Winstein
6842dbf066
Startup script quoting cleanups per Anders Kaseorg
2012-03-21 17:19:12 -04:00
Keith Winstein
9d7d47c57d
Count colors locally. Server advertises xterm-256color only when necessary.
2012-03-18 05:47:26 -04:00
Keith Winstein
262a19e5d9
Give mosh-client option to print number of colors
2012-03-18 04:53:14 -04:00
Keith Winstein
cbeda2d2fe
Don't die immediately on broken command
2012-03-18 03:53:01 -04:00
Keith Winstein
89d1c88bcf
More robust option parsing and redo wrapper
2012-03-18 03:23:58 -04:00
Keith Winstein
0e5fd920b1
New option-parsing for mosh-server
2012-03-18 03:13:50 -04:00
Keith Winstein
cf017cd99c
Don't try to parse single -- as IP address
2012-03-18 02:38:45 -04:00
Keith Winstein
452ff9f992
Require at least one element of command
2012-03-18 02:31:40 -04:00
Keith Winstein
e582b27b83
Allow arguments to command (after --)
2012-03-18 01:35:31 -04:00
Keith Winstein
b497cf42ef
mosh-server now takes command argument
2012-03-17 15:21:33 -04:00
Keegan McAllister
139bcbf9ae
configure.ac: Add --enable-{client,server,examples}
...
These default respectively to yes, yes, no.
2012-03-17 05:36:42 -04:00
Keith Winstein
a07fb0d542
Fix build on Mac OS X
2012-03-16 18:03:17 -04:00
Keith Winstein
170bc8366a
Posterize to 8 colors when outer terminal does not support 256 colors
...
Fixes #58 github issue.
2012-03-16 17:43:01 -04:00
Keith Winstein
0f011b030c
Start login shell ( fixes #59 github issue) (per Austin Clements)
2012-03-16 15:36:13 -04:00
Keith Winstein
57d97209c0
Support 256color (and assume 256color terminal). Closes #3 github issue.
2012-03-16 13:46:55 -04:00
Keegan McAllister
2d58630d0d
Only define saved_addr if HAVE_UTEMPTER
...
Otherwise the variable is unused, causing a compiler warning
2012-03-14 03:12:30 -04:00
Keith Winstein
487ab77e42
Eliminate one terminal copy per frame (20% speedup on benchmark)
2012-03-14 01:59:07 -04:00
Keith Winstein
53ab10a645
Optimize ConditionalOverlayCell::reset_with_orig() (52% speedup!)
2012-03-14 01:26:11 -04:00
Keith Winstein
e1452fc333
Relax glitch test for flagging
2012-03-12 16:28:27 -04:00
Keith Winstein
ef0bf90221
Rearrange mosh-server startup message
2012-03-12 05:15:41 -04:00
Keith Winstein
4f8f938369
Add versions and no-warranty msg to mosh, mosh-client, mosh-server
2012-03-12 04:49:00 -04:00
Keith Winstein
bc3297aa75
Small cleanup to generated output when predictions active
2012-03-10 06:42:21 -05:00
Keith Winstein
b8457dd308
Use TERM env var / terminfo to decide whether to send ECH. Fixes tmux bug.
...
Closes #28 github issue.
2012-03-10 05:41:03 -05:00
Keith Winstein
df3eec1397
Allow explicit UDP port option, confine ports to range 60000..61000
2012-03-10 03:34:47 -05:00
Keith Winstein
df5d163f9c
Fix asserts with side-effects (per Keegan McAllister)
2012-03-08 10:50:19 -05:00
Keegan McAllister
4a29ab9d70
Fix comments, formatting, error message around use of selfpipe
2012-03-07 18:38:18 -08:00
Keith Winstein
dc1c49975f
Underline when empirical delay gets >500ms, even if SRTT hasn't ( fixes #35 )
2012-03-07 04:09:40 -05:00
Keith Winstein
562ab991c8
Turn off prediction display only when quiescent ( fixes #36 github issue)
2012-03-07 03:51:31 -05:00
Keith Winstein
4e158a22e5
Fix bug affecting clean shutdown on OS X
2012-03-07 03:21:33 -05:00
Keith Winstein
875e17e966
skalibs without HAS_SIGNALFD will not work if we block these signals
2012-03-07 03:10:19 -05:00
Anders Kaseorg
edada5e1ea
Don’t use $(builddir)
...
$(builddir) is always ., except apparently on automake 1.9 which
doesn’t define it.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-03-07 03:10:19 -05:00
Anders Kaseorg
c56f8229e5
Build with bundled libstddjb selfpipe by default
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-03-07 03:10:19 -05:00
Quentin Smith
9a3ab83783
Use libstddjb's selfpipe instead of signalfd
...
Use selfpipe in our client, server, and examples.
2012-03-07 03:05:37 -05:00
Anders Kaseorg
b275571b8f
Remove redundant uses of environ
...
environ doesn’t work on OS X.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-03-07 03:05:36 -05:00
Quentin Smith
19d284bfa4
Handle util.h if it exists instead of pty.h
2012-03-07 03:05:36 -05:00
Quentin Smith
e8d14d35a6
Add boost and protobuf in the places where they are needed
...
[seph@directionless.org , andersk@mit.edu: add in even more places]
2012-03-07 03:05:36 -05:00
Quentin Smith
582bf347c9
Add alternate timestamp implementations
...
Add mach_absolute_time and gettimeofday timestamp implementations, and
fix clock_gettime check so that it can actually succeed
2012-03-07 03:05:36 -05:00