Commit graph

46 commits

Author SHA1 Message Date
Mattias Eriksson
272e05744f Add exceptions for certain keys to avoid double keys being sent 2024-02-08 09:15:50 +01:00
Mattias Eriksson
cfbd391f12 Fix csi key codes 2024-02-07 18:31:34 +01:00
Mattias Eriksson
e5692cd902 Cleaner modifier calculation 2024-02-06 20:55:15 +01:00
Mattias Eriksson
44424c0108 Refactor key handling 2024-02-06 17:43:17 +01:00
Mattias Eriksson
da33dfc5c8 Support for Ctrl-_ 2024-02-05 09:11:59 -07:00
Mattias Eriksson
05ee3dca4a Clippy fixes 2024-02-05 09:09:23 -07:00
Mattias Eriksson
e91bf807ec Improve SGR Scroll Wheel support 2024-01-31 09:33:18 -07:00
Mattias Eriksson
8d7d074933 Add support for Mouse Events 2024-01-31 06:34:55 -07:00
Mattias Eriksson
ff1ba5b12e Add Alt Backspace 2024-01-28 12:28:14 -07:00
Mattias Eriksson
f378bb5fdd Add alt key control characters 2024-01-22 13:10:01 -07:00
Mattias Eriksson
c749a02df8 Add Focus Follows Mouse 2024-01-22 09:00:08 -07:00
Mattias Eriksson
8fabf94f03 Remove debug output 2024-01-18 09:08:20 +01:00
Mattias Eriksson
580e3d3985 fmt 2024-01-17 19:03:39 +01:00
Mattias Eriksson
3919f87a75 Add back simple shade to unfocused windows 2024-01-17 18:44:40 +01:00
Mattias Eriksson
945581f515 Shading the background didn't work as expected, so not using that 2024-01-17 17:08:26 +01:00
Mattias Eriksson
d3afe3f6bc Merge branch 'master_jammy' into split 2024-01-17 16:41:35 +01:00
Mattias Eriksson
1940f2c056 Support splitting of terminals using a Pane Grid 2024-01-17 16:09:56 +01:00
Mohammad AlSaleh
60b55a076d Support STRIKEOUT, UNDERCURL, and all underline styles
* Add `Metadata` struct to pass bg, underline_color, and flags info via
   metadata.
 * Keep and `IndexSet` of `Metadata` info in Terminal.
 * Use `Metadata` info to render STRIKEOUT, UNDERCURL, and all underline
   styles via `BgRect`.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-16 11:36:05 -07:00
Jeremy Soller
b38927364c
Clear terminal selection on escape 2024-01-11 14:37:18 -07:00
Jeremy Soller
ac4472e45e
Fix warnings 2024-01-11 14:32:11 -07:00
Jeremy Soller
928269a239
Add find stub 2024-01-11 13:20:16 -07:00
Jeremy Soller
2a679ab96f
Fix warnings 2024-01-11 11:40:22 -07:00
Jeremy Soller
3f09e17156
Normalize scrollbar style with figma designs 2024-01-11 11:33:39 -07:00
Jeremy Soller
4bde45bcdc
Improve scrollbar 2024-01-10 16:17:52 -07:00
Jeremy Soller
c74d5d6f56
Remove extra items from header 2024-01-09 13:48:12 -07:00
Mohammad AlSaleh
dfb86e4ce2 Handle Ctrl+key_code
`tmux` in `cosmic-term` is now usable.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-09 10:23:19 -07:00
Jeremy Soller
412acc2b70
Just set needs_update flag on mouse drag 2024-01-04 14:27:18 -07:00
Jeremy Soller
556c32e33f
Use flag to determine when terminal needs update, only update once before draw 2024-01-04 14:25:31 -07:00
Jeremy Soller
f901c17e70
Join together background rectangles of the same color 2024-01-02 12:21:46 -07:00
Mohammad AlSaleh
f7ef6a6408 Fix UP/Down/Left/Right/Home/End when APP_CURSOR mode is enabled
Fixes #13, shell history, and many more.

 All this code is probably ripe for some refactors and higher
 abstractions. But this is good enough for now.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2023-12-30 07:10:58 -07:00
Jeremy Soller
4718703fe5
Fix alt and add F1-F12 keys 2023-12-22 08:45:53 -07:00
Jeremy Soller
94dd278f53 Fix selection when scrolling 2023-12-21 22:21:01 -07:00
Jeremy Soller
4ffad110b6 Add copy/paste 2023-12-21 22:13:17 -07:00
Jeremy Soller
c2fb3573d5 Show selection 2023-12-21 21:37:39 -07:00
Jeremy Soller
6cad69b414 Adjust to use COSMIC colors 2023-12-21 21:22:24 -07:00
Jeremy Soller
968955230c Add code to set selection 2023-12-21 15:09:18 -07:00
Jeremy Soller
81e1062211 Send \r instead of \n for Enter 2023-12-21 14:38:26 -07:00
Jeremy Soller
d7798f73e6 Send 0x7F instead of 0x08 for backspace 2023-12-21 14:24:21 -07:00
Jeremy Soller
2193003ada Use 85% opacity by default 2023-12-21 11:57:52 -07:00
Jeremy Soller
49149c3e17
Do not draw scrollbar when not needed, draw background behind scrollbar 2023-12-21 10:26:17 -07:00
Jeremy Soller
8008d0d2b0
Fix warnings 2023-12-21 09:53:31 -07:00
Jeremy Soller
07942c6f86 Remove all reference to scale factor 2023-12-20 19:54:18 -07:00
Jeremy Soller
7f181d0e64
Scroll on text input 2023-12-20 15:01:47 -07:00
Jeremy Soller
f9f7904117
Implement scrollbar 2023-12-20 14:57:44 -07:00
Jeremy Soller
ee3cc21ece
Add scrollbar and scrolling 2023-12-20 14:26:41 -07:00
Jeremy Soller
f6118a5cee
Convert to libcosmic 2023-12-20 13:31:10 -07:00