Wez Furlong
a8ae14bb6b
fix panic when resizing smaller leaves the cursor off screen
2018-08-05 16:32:29 -07:00
Wez Furlong
60c24a9e41
consolidate on one set of input keycodes and modifiers
2018-08-05 14:28:29 -07:00
Wez Furlong
c0ea601645
add helper for managing primary and alt screen
2018-08-05 13:49:03 -07:00
Wez Furlong
cee63e74e1
consolidate term::Line -> termwiz::Line
2018-08-05 12:37:01 -07:00
Wez Furlong
2c7a27c42a
move CellCluster to termwiz
2018-08-05 12:10:50 -07:00
Wez Furlong
18f34545b3
rustfmt
2018-08-05 09:14:40 -07:00
Wez Furlong
e2461b2380
add concept of implicit hyperlink to termwiz
...
Moves that functionality from wezterm+term into termwiz
2018-08-05 09:13:55 -07:00
Wez Furlong
5482323be5
really fix the erase in display issue
...
We also need an implicit erase in line in the appropriate direction
2018-08-04 23:23:04 -07:00
Wez Furlong
899593745e
fix growing bounds for Line::set_cell
2018-08-04 20:18:02 -07:00
Wez Furlong
e0b6fbfb1f
fix off-by-one for EraseInDisplay
...
We were deleting the current row and below rather than the rows below.
This was the cause of lines going blank during `apt upgrade` runs;
the line just above the bottom would get erased instead of scrolling
up.
I found this by running the termwiz widget demo; the top line was being
erased by mistake.
2018-08-04 19:28:18 -07:00
Wez Furlong
6c1f089f13
buffer processing in Performer::print
...
This helps to accumulate multi-char grapheme sequences into a single
cell.
2018-08-04 19:02:46 -07:00
Wez Furlong
10f0403973
improve encapsulation of Line struct
2018-08-04 18:33:44 -07:00
Wez Furlong
a597a23aef
fix cargo fmt
2018-08-04 14:30:34 -07:00
Wez Furlong
e0cc46fe4f
log unhandled cursor shape sequence
2018-08-04 12:43:15 -07:00
Wez Furlong
204d741be7
improve display for unhandled csi
2018-08-04 11:59:20 -07:00
Wez Furlong
472d243a33
cut over to termwiz Cell
2018-08-04 09:35:39 -07:00
Wez Furlong
1ec83706e7
use termwiz::Hyperlink
2018-08-04 00:26:24 -07:00
Wez Furlong
f37de9cbe5
use termwiz to replace most of the escape parsing
2018-08-03 22:37:04 -07:00
Wez Furlong
039eadc05f
update rustfmt
2018-07-11 08:30:49 -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
d73892a4fd
update for recent rustfmt changes
...
No functional changes
2018-04-11 13:15:12 -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
ff5a3179e1
new windows with Cmd-N
2018-03-04 17:17:37 -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
Wez Furlong
816925424a
add basic tab related key bindings
2018-03-04 13:31:16 -08:00
Wez Furlong
88473e5a09
move window/tab/fullscreen related to TerminalHost
2018-03-04 09:13:36 -08:00
Wez Furlong
5db84856e9
clippy
2018-03-03 13:27:28 -08:00
Wez Furlong
7b7b7cff46
Add support for OSC 52, clipboard
...
We only allow setting, not reading, the clipboard.
2018-03-01 00:20:15 -08:00
Wez Furlong
80f114c3ee
stubs for a couple of OSC sequences
...
These do nothing, but at least we don't spew about them.
2018-02-28 23:32:30 -08:00
Wez Furlong
28aafa4a73
Improve printing of unknown OSC
2018-02-28 23:09:00 -08:00
Wez Furlong
f986e0c6d8
Properly check the range intersection for invalidating selection
2018-02-28 22:07:48 -08:00
Wez Furlong
f3149a5bf6
Clear the selection rendering when the cells change
...
I think this covers it... I need to follow up with some test coverage.
Fixes: https://github.com/wez/wezterm/issues/9
2018-02-28 09:06:51 -08:00
Wez Furlong
9ad9360075
Update tab stops when resizing
...
The issue here was that we were not updating the tab stops when making
the window larger. This had the side effect of causing the cursor to
move in unexpected ways when tabbing to the right.
Fixes: https://github.com/wez/wezterm/issues/13
2018-02-28 00:15:54 -08:00
Wez Furlong
a274700cb8
figure out what a couple of sequences used by mc are
...
But don't do anything to implement them yet
2018-02-27 21:33:02 -08:00
Wez Furlong
9d75a42af6
improve debug output for unhandled csi
2018-02-27 21:21:05 -08:00
Wez Furlong
045abeee42
print ding when the bell is rung
...
refs: https://github.com/wez/wezterm/issues/3
2018-02-27 20:59:09 -08:00
Wez Furlong
27ab1b65a0
Add support for F-keys
...
Fixes https://github.com/wez/wezterm/issues/11
2018-02-27 08:01:41 -08:00
Wez Furlong
791d39bb4d
Fix 256 color palette
...
We were skewing to blue before red and that didn't match xterm.
Fixes https://github.com/wez/wezterm/issues/12
2018-02-27 07:26:49 -08:00
Wez Furlong
1e71efa33a
remove the clunky answerback thing
2018-02-26 08:43:14 -08:00
Wez Furlong
7b5dbab1a4
Do a better job at BCE when erasing lines
...
The `dialog` program relies on this.
2018-02-26 08:08:05 -08:00
Wez Furlong
8e9620d001
add CHA support, used by dialog
2018-02-26 07:36:32 -08:00
Wez Furlong
4b92a03c15
remove another debug line
2018-02-26 07:15:16 -08:00
Wez Furlong
b81fb73c37
Really avoid underflow with apt scrolling
...
I thought I took care of this in 7c0536f9a3 ,
but I misunderstood how saturating_sub works. I still need to clamp
it within range.
2018-02-24 20:59:44 -08:00
Wez Furlong
4092796db3
Fix an issue where the background color rendered gray instead of black
...
When using the default monospace font on ubuntu (typicaly
DejaVuSansMono), the texture atlas would end up the bottom left pixel
being a shade of gray.
Since we were using (0,0) coords for whitespace cells, all whitespace
cells would appear shaded gray.
We now reserve a black pixel in the bottom left of the underline texture
and switch to that for whitespace instead.
I added Debug support to the ColorPalette while tracking this down,
and figured that I might as well keep it.
2018-02-24 17:28:35 -08:00
Wez Furlong
9737646978
fix delete
2018-02-24 15:58:38 -08:00
Wez Furlong
abc06620b8
add support for implicit hyperlinks
2018-02-24 15:43:02 -08:00
Wez Furlong
90dd732aee
make selected and cursor text fg/bg configurable
...
Previously we only allowed changing the cursor bg color, now we
get 4 different color settings for this!
2018-02-23 07:57:52 -08:00