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
Daniel "Tracerneo" Ziółkowski
06561d3500
Add support for ECMA-48 escape sequence for italic
...
Closes #443
2013-07-01 03:08:25 -04:00
Anders Kaseorg
64f7f7abb2
Dispatcher::get_{dispatch_chars,OSC_string}: Make const
...
Found by cppcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
d0eeabb51e
human_readable_duration, Terminal::appendstring: Pass strings by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
ea3ad786fa
scripts/mosh: Add --no-init option to disable alternate screen mode
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #384 . Closes #2 .
2013-03-10 15:46:49 -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
2ae960f7f0
Display: Abstract terminfo capability functions
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -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
sqweek
13a16332d4
Treat empty OSC number as zero.
...
For interoperability's sake, accept OSCs of the form ESC];title^G
treating them the same as ESC]0;title^G
Signed-off-by: sqweek <sqweek@gmail.com >
2013-03-10 15:44:17 -04:00
Anton Lundin
438d0d8b9a
Use the right term.h
...
When ncurses is in a separate include dir, we need to take the term.h
from there to match with the [n]curses.h
2012-12-16 17:30:14 +01:00
Anton Lundin
993abf57f1
Rework curses detection
...
Detect diffrent variants of curses and use them.
2012-12-01 12:53:28 +01: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
Anders Kaseorg
5e3ec2e037
Instantiate Parser::family once
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-07-24 15:01:55 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
8026c924dc
Quit with cursor visible.
2012-05-23 11:44:49 -04:00
Larry Doolittle
eda48085ba
Simple spelling fixes
2012-05-23 05:11:05 -04:00
Keith Winstein
1cf12f9e9b
Prevent integer overflow of very large escape sequence params. Fixes #274 .
2012-05-16 12:16:50 -04:00
Keith Winstein
9791768705
Cap escape sequence parameters to prevent long loops.
...
Fixes #271 github issue.
2012-05-15 23:46:09 -04:00
Keith Winstein
22375a2d54
Tabulation clear preserves wrap state (per davidben)
2012-05-06 20:01:39 -04:00
Keith Winstein
43182729ec
More graceful output from failed verification
2012-05-05 01:53:28 -04:00
Keith Winstein
48fbe3d0e1
Correctly handle wrapped lines where first portion is blank
2012-05-05 01:45:19 -04:00
Keith Winstein
3bdcc98ba4
Tab preserves, but does not set, wrap state when used in last col.
...
Fixes vttest regression.
2012-05-05 00:04:43 -04:00
Keith Winstein
c8951c7dfd
Use memmove() where ranges may overlap. Fixes #200 (Matthew Dempsky).
2012-04-16 18:22:27 -04:00
Keith Winstein
bfa0999089
Final tab-related bugfix (of the morning). Now matches xterm more closely.
2012-04-16 11:31:37 -04:00
Keith Winstein
0293e579d2
Properly reset tab stops on resize
2012-04-16 09:55:59 -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
Keith Winstein
c15d3d0c48
Use "ANSI-mode" cursor keys only on actual cursor keys (A through D).
...
Fixes #161 .
2012-04-16 03:44:07 -04:00
Keith Winstein
6b6747cda7
Fix valgrind error with 1-col char then 2-col char in a 1x1 terminal
2012-04-15 17:11:40 -04:00
Keegan McAllister
cd2d482484
Don't use *_t for our own typedefs
...
It's reserved by POSIX.
(closes #158 pull request)
2012-04-15 13:50:18 -04:00
Keegan McAllister
8bcc001b52
Remove Boost entirely
2012-04-15 13:49:15 -04:00
Keegan McAllister
8f099cafbb
Remove boost::lambda from ConditionalOverlayCell::get_validity
2012-04-15 13:49:15 -04:00
Keegan McAllister
6e56fd2157
Remove BOOST_AUTO from terminaldisplay.cc
2012-04-15 13:49:15 -04:00
Keegan McAllister
87a5f86794
Remove BOOST_AUTO from terminalframebuffer.cc
2012-04-15 13:49:15 -04:00
Keith Winstein
a4221d17a4
Disable posterization and rely solely on TERM to tell remote end about colors
...
(should help #155 github issue)
2012-04-14 13:46:38 -04:00
Keith Winstein
5c20c8d4be
Keep using OSC 0 when possible to preserve compability with older clients.
...
Re: #137
2012-04-14 02:11:31 -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
53f79e4261
Fix vttest "Funny scrolling regions" by ignoring some invalid scroll regions
...
Addresses #155 github issue.
2012-04-14 01:11:57 -04:00
Keegan McAllister
d2434d1a79
Check compiler support for -fno-default-inline and -pipe
...
clang was spewing warnings about the unrecognized -fno-default-inline. (Oddly,
it warns only with -c, not when compiling directly to an executable.) For
completeness we also check -pipe, even though clang is OK with that one.
It should be fine to omit either flag. gcc -fno-default-inline drops the
implicit 'inline' annotation on functions defined inside a class scope, but
'inline' is only a hint anyway. -fno-default-inline does not change linkage.
-pipe is merely a compile speed optimization.
2012-04-13 12:27:27 -04:00
Keegan McAllister
349e2d20c8
Use the hardening flags
...
Closes #79 .
2012-04-13 12:25:09 -04:00
Keith Winstein
a67ae7b0f4
Support 16-color set (per Anders Kaseorg).
...
Closes #106 github issue.
Closes #133 github issue.
Closes #131 github issue.
2012-04-11 03:09:26 -04:00
Anders Kaseorg
9cec566cd1
Find ncurses from pkg-config if possible, and prefer separate libtinfo
...
Recent ncurses can be configured --with-termlib, which splits out the
terminfo-level functions from libncurses into a separate libtinfo.
This allows us to avoid an unnecessary dependency on libncurses. (We
already avoided this on distributions that link with -Wl,--as-needed.)
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #128 github pull request.
2012-04-11 02:47:55 -04:00
Peter Jeremy
fd0ddf0e22
strtol(3) can optionally set errno to EINVAL if no conversion could be
...
performed and FreeBSD (at least) implements thin behaviour. Add an
explicit test to detect this situation in Dispatcher::parse_params().
(This behaviour difference is not relevant to other uses of strtol()).
This corrects the mishandling of (eg) "CSI m" on FreeBSD.
Closes #129 github pull request.
[keithw -- also fixes same issue with mosh-server on OS X]
2012-04-11 02:46:26 -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
4144f2e4f0
Don't clear wrap state on DEC set mode escape (matches xterm)
2012-04-11 01:58:20 -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
eea48e59d3
Avoid compiler warning on platforms where wchar_t is uint32_t (arm)
2012-03-31 14:30:24 -04:00
Keegan McAllister
7ed5174aa7
Move some locale handling into one place
2012-03-26 20:08:55 -04:00
Keith Winstein
00561a95d3
No need to reset scrolling region on close -- we always clean this up
2012-03-21 19:01:35 -04:00