John Hood
543f346ac7
Fix various new compiler warnings.
...
terminalfunctions.cc: set_if_available() was undeclared.
Fix printf() wint_t/wchar_t warnings.
mosh-server.cc: Fix warning for side effects inside typeid().
Signed-off-by: John Hood <cgull@glup.org >
2015-06-06 13:12:32 -04:00
Geoffrey Thomas
4b75bcfdd9
terminaldisplay: Make a for loop's boundary better match its body
...
Both f and frame.last_frame must have the same number of rows here, but
since we're iterating over frame.last_frame's rows, make that more
explicit.
2015-06-04 23:47:32 -04:00
John Hood
8af7473cc4
Reset XTerm mouse modes on suspend/exit.
2015-05-31 22:50:17 -04:00
Louis Kruger
c4236c6762
Fix xterm mouse support.
2015-05-31 18:18:30 -04:00
Andrew Chin
0be97a80bd
Implement UTF8 mouse mode (SET_EXT_MODE_MOUSE DECSET 1005)
...
Signed-off-by: Andrew Chin <achin@eminence32.net >
2014-12-08 20:41:11 -05:00
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
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
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
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
03217ddb5a
Move Emulator::{open,close} to Display
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
sqweek
5af90cc1ac
Don't touch window title before an OSC is received.
...
Fixes the "window title being clobbered" issue raised in issue 137.
Signed-off-by: sqweek <sqweek@gmail.com >
Closes #380 . Closes #137 .
2013-03-10 15:44:49 -04:00
Keith Winstein
02f54881be
Use BEL instead of ST to terminate Operating System Command
...
ST is more correct, but BEL is apparently more widely supported.
Closes #304
2012-07-26 22:01:53 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
48fbe3d0e1
Correctly handle wrapped lines where first portion is blank
2012-05-05 01:45:19 -04:00
Keegan McAllister
c390ee9b80
Hardcode the terminals which accept "set window title"
...
terminfo does not have reliable information on this, so we hardcode a whitelist
of terminal type prefixes. This is the list from Debian's default screenrc,
plus "screen" itself (which also covers tmux).
Closes #172 .
Closes #191 .
2012-04-16 09:23:30 -04:00
Keith Winstein
feb352c809
Optional verifier for round-trippability, and fix wrapping and tab bugs.
2012-04-16 09:09:20 -04:00
Keegan McAllister
6e56fd2157
Remove BOOST_AUTO from terminaldisplay.cc
2012-04-15 13:49:15 -04:00
Keith Winstein
d0a818d2e2
Track icon name and window title separately. Implement MOSH_TITLE_NOPREFIX
2012-04-14 01:55:28 -04:00
Keith Winstein
b4c47b77cf
Fix bug involving wraparound copy-and-paste to a blank line.
...
Identified by Anders Kaseorg.
Test case:
( reset; seq 100; printf 'Hello, world!'; sleep 1;
printf '\t\t\t\t\t\t\t\t\t\t \r\e[K'; sleep 1; printf '\n' )
> /dev/pts/16 2>&1
(replace /dev/pts/16 with mosh or termemu terminal)
2012-04-11 02:40:18 -04:00
Keith Winstein
8221838f51
Fix bug sometimes causing missing (or spurious) wraparound copy-and-paste
2012-04-02 19:04:26 -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
c896055d15
Correctly render on terminals without BCE ( fixes #56 github issue)
2012-03-16 13:46:55 -04:00
Keith Winstein
4783e7cd82
Eliminate unnecessary snprintf()
2012-03-14 02:14:10 -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
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
ac16f9127c
Output EL (erase line) when possible
2012-03-10 04:30:04 -05:00
Keith Winstein
df5d163f9c
Fix asserts with side-effects (per Keegan McAllister)
2012-03-08 10:50:19 -05:00
Anders Kaseorg
7d19fbe203
Replace C++0x auto with Boost Typeof library
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 21:29:51 -05:00
Anders Kaseorg
32ff4af359
Fix wchar_t format string types
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 20:22:12 -05:00
Anders Kaseorg
af649a035c
Add missing #includes
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 19:24:51 -05:00
Keith Winstein
3781a290c8
Add copyright/license notices
2012-02-06 20:52:48 -05:00
Keith Winstein
38c9e99882
Separate modules by subdirectory
2012-02-06 18:26:45 -05:00