Wez Furlong
5ac675bb5b
simplify the terminfo renderer code a little by reducing macro usage
2018-07-20 07:18:18 -07:00
Wez Furlong
4090417b29
tidy up true color fallback handling
2018-07-20 06:59:32 -07:00
Wez Furlong
9c1fad733d
doc updates
2018-07-20 06:59:32 -07:00
Wez Furlong
7111f5f153
remove test_ prefix from tests
2018-07-19 20:55:09 -07:00
Wez Furlong
d37eb906b3
Add a simple optimization to use ClearScreen
2018-07-19 18:48:59 -07:00
Wez Furlong
fe32fac524
Add ClearScreen Action
...
For clearing to a given background color, in some cases we may need
to know the size of the screen. To facilitate this, I've changed
the interface for the renderer to receive the Terminal instance
so that we can query the size of the screen.
2018-07-19 18:01:13 -07:00
Wez Furlong
c78d8a0ccc
add get/set terminal size
2018-07-19 11:26:24 -07:00
Wez Furlong
01f57141e5
Add UnixTerminal and the Terminal and IsTty traits
2018-07-19 10:52:29 -07:00
Wez Furlong
71354f8cb9
flesh out example and a couple of bugs
2018-07-19 09:58:48 -04:00
Wez Furlong
760be03f8e
add failing example
2018-07-17 19:04:23 -07:00
Wez Furlong
b69cc04266
add non-terminfo fallback rendering
2018-07-17 14:30:03 -07:00
Wez Furlong
3a31975f06
Add terminal capabilities struct
2018-07-17 12:00:22 -07:00
Wez Furlong
eb7783242e
add_changes() to improve efficiency of copy/draw operations
2018-07-16 09:30:44 -07:00
Wez Furlong
60912a4d44
add copy_region method
2018-07-16 08:30:27 -07:00
Wez Furlong
2830da269e
Implement screen/region diffing and copying
2018-07-16 08:19:29 -07:00
Wez Furlong
30a549bdab
avoid emitting sgr if the attribute bits are unchanged
2018-07-15 20:42:27 -07:00
Wez Furlong
0828e40b15
adopt encode_escape in the renderer
...
This pulls in the rendering code from the escape sequence parser
module and expands its tests.
Added my compiled xterm terminfo file to make sure that the
test environment is reproducible.
2018-07-15 20:36:51 -07:00
Wez Furlong
bb96508634
add support for DECSET and a handful of known modes
2018-07-15 15:08:09 -07:00
Wez Furlong
a96e4f29ba
Add parsing/encoding for Esc sequences (non-CSI, non-OSC)
2018-07-15 14:17:22 -07:00
Wez Furlong
f692a6809a
Add some OSC parsing/encoding
2018-07-15 11:13:43 -07:00
Wez Furlong
4fae1ea3af
simplify CSI parsing
2018-07-15 08:59:57 -07:00
Wez Furlong
0637c73f1d
improve compat/utility when converting params to 1-based values
2018-07-15 07:11:56 -07:00
Wez Furlong
6ba8de63f2
add some edit related CSI sequences
2018-07-14 23:39:17 -07:00
Wez Furlong
39875b8948
Add cursor codes
2018-07-14 22:12:06 -07:00
Wez Furlong
f585b40ea0
Add a way to (re-)encode parsed data as escape sequences
2018-07-14 18:16:12 -07:00
Wez Furlong
60b19aa6b4
add plumbing for escape sequence parsing
2018-07-14 16:27:42 -07:00
Wez Furlong
ca7c22ce74
End end relative positioning, untested for now
2018-07-14 08:10:56 -07:00
Wez Furlong
666af3ff3e
sketch out the interface for two future functions
2018-07-14 08:00:50 -07:00
Wez Furlong
c63d17b1cc
interpret CRLF in Text Change entries
2018-07-13 21:15:52 -07:00
Wez Furlong
a9bb29dde1
Initial work on the render concept
2018-07-13 20:58:53 -07:00
Wez Furlong
e11156abaa
Ensure that the cursor pos is well defined after resize
2018-07-12 21:14:49 -07:00
Wez Furlong
1361c2ce61
invalidate Change stream on resize
2018-07-12 20:42:27 -07:00
Wez Furlong
c2acc333b1
add ability to flush the change stream
2018-07-12 20:07:47 -07:00
Wez Furlong
d889168001
construct Change streams
2018-07-12 09:05:46 -07:00
Wez Furlong
e547f8c504
start building out the terminal model
...
This is influenced by my code in wezterm
2018-07-12 07:26:37 -07:00
Wez Furlong
039eadc05f
update rustfmt
2018-07-11 08:30:49 -07:00
Wez Furlong
6efce9943c
std::env::home_dir is deprecated, use an alternative
2018-07-11 08:29:11 -07:00
Wez Furlong
8fae5f56a8
remove dead_code marker from some exported constants
2018-07-11 08:14:09 -07:00
Wez Furlong
8b24d34a74
fix panic for large pastes
2018-04-28 21:54:39 -07:00
Wez Furlong
b9088bd62d
update for rustfmt changes
2018-04-28 21:53:14 -07:00
Wez Furlong
d73892a4fd
update for recent rustfmt changes
...
No functional changes
2018-04-11 13:15:12 -07:00
Wez Furlong
57b438f867
Ensure that the TERM variable is set
...
This is important when being launched directly from the window manager.
2018-04-11 12:04:53 -07:00
Wez Furlong
197819db6d
Add basic support for ICH which is used by bash CTRL-R
2018-03-09 22:15:06 -08:00
Wez Furlong
1c4500082f
don't accumulate lingering zombies after closing a tab
2018-03-04 19:29:18 -08:00
Wez Furlong
2b822687be
resize all tabs when resizing the window
2018-03-04 17:24:19 -08:00
Wez Furlong
ff5a3179e1
new windows with Cmd-N
2018-03-04 17:17:37 -08:00
Wez Furlong
ddb0055124
Add docs about window and tab hotkeys
2018-03-04 17:10:38 -08:00
Wez Furlong
68bb0e859e
Show tab number in title bar when there are tabs
2018-03-04 17:06:06 -08:00
Wez Furlong
c5ce3e2621
Add CMD-[0-9] as shortcut for tab switching
2018-03-04 16:52:40 -08:00
Wez Furlong
edf44c9c48
We can now spawn and switch tabs!
2018-03-04 16:46:14 -08:00