Commit Graph

365 Commits

Author SHA1 Message Date
Keith Winstein 6842dbf066 Startup script quoting cleanups per Anders Kaseorg 2012-03-21 17:19:12 -04:00
Keegan McAllister 4eb3cace0b Use the PRNG class for chaff
In particular, srand( time( NULL ) ) is very predictable.

[keithw@mit.edu -- modified to use byte PRNG from /dev/urandom]
2012-03-19 23:12:07 -04:00
Keith Winstein 40d69da5e6 Add PRNG reading from /dev/urandom
[Keegan: various small changes]
2012-03-19 23:12:07 -04:00
Keith Winstein e4780c5d05 Invalidate cursor location (but don't actually move cursor) after scroll reset 2012-03-18 16:26:16 -04:00
Keith Winstein 231c181101 Scroll only scrolled region (fixes #31 github issue) 2012-03-18 16:07:23 -04:00
Keith Winstein 483bfe9f0f Make make_chaff() static class function to fix spurious clang warning 2012-03-18 14:11:49 -04:00
Keith Winstein ee2aea1a6e Add chaff to outgoing instructions (closes #26 github issue) 2012-03-18 13:56:27 -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 2316c7a2a4 Update gitignore for benchmark 2012-03-18 04:12:54 -04:00
Keith Winstein cbeda2d2fe Don't die immediately on broken command 2012-03-18 03:53:01 -04:00
Keith Winstein 3d4ce8b52d Revert "Increase shutdown retries before giving up"
This reverts commit df54a869e9.

This takes too long and the UI is not pretty (since lasts more than 1 s).
2012-03-18 03:41:16 -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 13bd38aa51 Switch to deltaE method for color posterization 2012-03-18 01:52:13 -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
Keith Winstein df54a869e9 Increase shutdown retries before giving up 2012-03-17 15:08:17 -04:00
Keith Winstein d88ae9bfd0 Fix erroneous blinking in emacs (sgr with >15 fg but <16 bg) 2012-03-17 15:00:54 -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 c896055d15 Correctly render on terminals without BCE (fixes #56 github issue) 2012-03-16 13:46:55 -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 6e220268d6 Restore benchmark iterations to 100000 2012-03-14 02:52:23 -04:00
Keith Winstein 4783e7cd82 Eliminate unnecessary snprintf() 2012-03-14 02:14:10 -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 612159490f Modify benchmark to avoid excessive repeated lines 2012-03-14 01:34:40 -04:00
Keith Winstein 53ab10a645 Optimize ConditionalOverlayCell::reset_with_orig() (52% speedup!) 2012-03-14 01:26:11 -04:00
Keith Winstein 561a2be761 Optimize out use of sgr() by storing rendition instead (11% speedup) 2012-03-14 01:11:47 -04:00
Keith Winstein 56e52190eb Fix warning for clang++ -- we now compile on clang++ with -Werror 2012-03-13 18:54:37 -04:00
Keith Winstein 4bde28bc3f Add benchmark example (stress test for prediction overlay) 2012-03-13 18:48:30 -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
Anders Kaseorg 843401a935 Display::Display: Fix undefined pointer comparison
“If two pointers p and q of the same type point to different that are
not members of the same object or elements of the same array or to
different functions, or if only one of them is null, the results of
p<q, p>q, p<=q, and p>=q are unspecified.”

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2012-03-10 15:58:19 -05:00
Keith Winstein bc3297aa75 Small cleanup to generated output when predictions active 2012-03-10 06:42:21 -05:00
Keith Winstein 122d9fbccf Eliminate warning on OS X where argument to tigetstr is not const 2012-03-10 06:02:17 -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 ac16f9127c Output EL (erase line) when possible 2012-03-10 04:30:04 -05:00
Keith Winstein 66c6c0669a Print pre-CONNECT output only on failure 2012-03-10 03:55:25 -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