John Hood
6f4a59e20f
Resolve Coverity issues
...
Signed-off-by: John Hood <cgull@glup.org >
2015-06-10 23:51:42 -04:00
John Hood
8a91e78349
termemu: respect $SHELL and exec argv if given
...
Signed-off-by: John Hood <cgull@glup.org >
2015-06-05 22:41:21 -04:00
Anders Kaseorg
cd2ae36f36
Mark local functions as static
...
This helps to catch unused functions like the former mosh_read_line,
allows the compiler to make better inlining decisions, and reduces the
binary size a bit.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-06-04 23:52:03 -04:00
john hood
060061aa21
Fix forkpty() for FreeBSD 10.
2015-05-25 02:17:24 -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
Timo Sirainen
0c5307f345
Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keegan McAllister
dd941df19d
Remove unused sigfd and skalibs
...
Closes #265 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
f7be5c8cec
Use Select signal handling in examples
2012-05-16 00:00:27 -04:00
Keegan McAllister
768d4ce797
Make Select a singleton
...
It's going to manipulate process-global signal state, so multiple
instances do not make sense.
2012-05-16 00:00:27 -04:00
Keegan McAllister
043f9af260
Use Select in examples
2012-05-16 00:00:27 -04:00
Keegan McAllister
5cff456400
Define PROG, for newer versions of skalibs
...
Needed to build from our source tarball on some Gentoo systems.
Closes #239 .
Closes #254 .
2012-05-05 02:11:02 -04:00
Keith Winstein
bcb96d9337
Change some asserts flagging runtime errors to fatal_asserts (Anders Kaseorg)
2012-04-16 06:27:14 -04:00
Keith Winstein
8f60f7ab05
Convey locale-related environment variables as backup, and nicer error.
...
Fixes #74 .
2012-04-14 16:56:48 -04:00
Keegan McAllister
0eec0b60f0
Linux: Use our own signalfd wrapper, rather than libstddjb
...
selfpipe already does a fine job of interfacing to signalfd. But Debian and
Ubuntu want us to depend on the skalibs-dev package rather than build libstddjb
ourselves. That would be fine except that skalibs-dev has static libraries
only, and they aren't built with -fPIC. This interferes with building
mosh-{client,server} as position-independent executables, which is a desirable
security measure.
So we have our own wrapper, which invokes either signalfd or selfpipe. And we
build it ourselves with our own flags, because it's part of the Mosh project
proper.
(closes #108 )
2012-04-13 12:33:21 -04:00
Keith Winstein
9a7f3ad33d
Print warnings when IUTF8 missing
2012-03-31 15:20:30 -04:00
Quentin Smith
44ab7360bc
Fix poll.h location
2012-03-28 14:32:32 +02:00
Keegan McAllister
7ed5174aa7
Move some locale handling into one place
2012-03-26 20:08:55 -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
57d97209c0
Support 256color (and assume 256color terminal). Closes #3 github issue.
2012-03-16 13:46:55 -04: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
df5d163f9c
Fix asserts with side-effects (per Keegan McAllister)
2012-03-08 10:50: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
Quentin Smith
d5a1afd5e1
Fix ioctl
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
Keith Winstein
3781a290c8
Add copyright/license notices
2012-02-06 20:52:48 -05:00
Keith Winstein
a164a84496
Make examples compileable
2012-02-06 19:28:22 -05:00