| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
Run clang-format over the Mosh source tree. This is a large change and
has been factored into its own commit for auditability. Reproduce it
with
find . -name \*.cc -or -name \*.h | while read f; do clang-format -i --style=file $f; done
|
| |
|
|
|
|
|
|
|
| |
Previously, mosh used extensive -I flags and all of the mosh-local
makes it really hard to tell what the proper dependency graph is, so
instead remove the -I arguments in favvor of $(top_srcdir) and qualify
the paths wherever they are used.
|
|
|
|
| |
A couple of them got improved out of existence.
|
|
|
|
|
| |
These cause warnings from static checkers, and seem to lead to spurious
GCC7 -Wmaybe-uninitialized.
|
|
|
|
| |
There are many more.
|
| |
|
|
|
|
|
|
| |
A character cell can only be either narrow or wide. It's more
convenient to represent that as an int containing 1 or 2, but slightly
more correct to represent it as a "boolean" single-bit integer.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This field was used during development to measure the
coverage of the ANSI terminal parser against typical
terminal input sequences.
The "handled" field has not been read by any code since
commit 1ee54cd7 (February 2011). Eliminating the field
by popular request (closes #723).
|
|
|
|
| |
Fixes #702.
|
|
|
|
|
|
|
|
|
|
|
|
| |
ASCII <-> UTF has trivial mappings. Avoid wcrtomb() and mbrtowc().
ISO-8859-1 is all narrow characters, and cheap to test for. It might
be possible to cheaply test other popular UTF blocks and/or planes as
well.
These two changes get 2-3x faster input processing on Linux and
FreeBSD. Performance improvement in actual usage is more modest but
still significant.
|
| |
|
|
|
|
|
|
|
|
| |
* Reduce the size of Terminal::Cell.
* Change colors and attributes in Terminal::Rendition to bitfields/bitmask.
* Change Cells to use UTF-8 strings instead of vector<wchar_t>. Store Rows in a vector instead of a deque.
* Add various Framebuffer::append() methods for more efficient passing of single and repeated characters.
* Change title/icon strings from deques to a vector typedef-- this is more for tidiness than any real performance.
|
|
|
|
| |
Fixes #667
|
|
|
|
| |
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|