Mitchell Hashimoto
56cb1dd55b
screen: correct cursor position with scrollback and less cols
2023-03-01 21:06:33 -08:00
Mitchell Hashimoto
979dc5a439
screen: redo resizing to less columns
...
This is more performant (prefers fast copies if no wrapping) and keeps
track of the cursor more accurately.
2023-03-01 20:59:35 -08:00
Mitchell Hashimoto
3b586c39c5
screen: grow cols before rows to handle reflow (tested)
2023-03-01 19:45:39 -08:00
Mitchell Hashimoto
74f0e38b57
screen: only trim if we're not wrapping on col growing
2023-03-01 17:42:46 -08:00
Mitchell Hashimoto
9a4a138da0
screen: don't wrap empty-char stylized cells on shrinking cols
2023-03-01 17:34:17 -08:00
Mitchell Hashimoto
31ac3ec7ba
screen: when expanding cols, broadcast empty styled cells
2023-03-01 17:24:24 -08:00
Mitchell Hashimoto
89138cf7e3
screen: don't trim blank lines if rows aren't changing
2023-03-01 17:09:57 -08:00
Mitchell Hashimoto
b4d8419feb
screen: trim trailing no-character cells when rows is changing
...
This matches Terminal.app, and makes it so the `ESC [ J` doesn't
generate scrollback on rows change.
2023-03-01 17:07:07 -08:00
Mitchell Hashimoto
d4057522ee
screen: resize more rows preserves soft wrapped flag
2023-03-01 09:18:26 -08:00
Mitchell Hashimoto
5f9ab91466
screen: fix issue with resizing w/ more cols, reflow, and scrollback
2023-03-01 09:08:08 -08:00
Mitchell Hashimoto
1970a84960
screen: when resizing and trimming scrollback, have to offset cursor Y
...
When the scrollback is trimmed off the top, the y stops moving. This
would cause an assertion failure because y could be greater than the row
count! The test case tests this.
2023-02-28 22:28:27 -08:00
Mitchell Hashimoto
87e0f5589f
screen clone should not make full requested height "written"
...
Previously, the screen clone would incidentally mark the full height as
"written" which would cause resize to create scrollback because it was
trying to preserve prior rows. A clone should not "write" any data. This
modifies the clone operation to create a screen with the correct height
but only copy data actually written.
2023-02-28 17:10:28 -08:00
Mitchell Hashimoto
38060978e2
termio/exec: don't pass pointer to stack var
2023-02-28 11:07:03 -08:00
Mitchell Hashimoto
d49c65d101
update zig-objc for new for syntax
2023-02-27 22:08:12 -08:00
Mitchell Hashimoto
14a88c93ba
update zig-js for latest zig changes
2023-02-27 22:02:50 -08:00
Mitchell Hashimoto
8a451fa302
update flatpak to use latest zig
2023-02-27 22:01:32 -08:00
Mitchell Hashimoto
32e367e060
update mach to fork for now
2023-02-27 21:56:19 -08:00
Mitchell Hashimoto
2b73fbaa0d
iterating on the new for loop syntax
2023-02-27 21:53:09 -08:00
Mitchell Hashimoto
8db30107ae
pkg: fmt
2023-02-27 21:46:59 -08:00
Mitchell Hashimoto
ce86c64b42
update zig, src for loops
2023-02-27 21:46:42 -08:00
Mitchell Hashimoto
82706050d9
Merge pull request #81 from mitchellh/dependabot/github_actions/flatpak/flatpak-github-actions-5
...
build(deps): bump flatpak/flatpak-github-actions from 4 to 5
2023-02-27 17:43:12 -08:00
Mitchell Hashimoto
a2fb1a8dcb
Merge pull request #80 from mitchellh/dependabot/github_actions/docker/setup-qemu-action-2
...
build(deps): bump docker/setup-qemu-action from 1 to 2
2023-02-27 17:42:49 -08:00
dependabot[bot]
c4e29b0c42
build(deps): bump flatpak/flatpak-github-actions from 4 to 5
...
Bumps [flatpak/flatpak-github-actions](https://github.com/flatpak/flatpak-github-actions ) from 4 to 5.
- [Release notes](https://github.com/flatpak/flatpak-github-actions/releases )
- [Commits](https://github.com/flatpak/flatpak-github-actions/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: flatpak/flatpak-github-actions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 01:15:10 +00:00
dependabot[bot]
9ae6840e37
build(deps): bump docker/setup-qemu-action from 1 to 2
...
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 01:15:07 +00:00
Mitchell Hashimoto
c2cd9f06dc
Update README.md
2023-02-27 15:33:32 -08:00
Mitchell Hashimoto
935486ca30
Merge pull request #79 from mitchellh/flatpak
...
Flatpak Package for Linux
2023-02-27 15:29:52 -08:00
Mitchell Hashimoto
bdfd182802
flatpak: remove zig from final build
2023-02-27 15:29:32 -08:00
Mitchell Hashimoto
5db9854e63
build: install the proper linux desktop file depending on flatpak or not
2023-02-27 15:20:31 -08:00
Mitchell Hashimoto
277fd333ae
remove gtk build from test, doesn't work in CI
2023-02-27 15:02:03 -08:00
Mitchell Hashimoto
b25adb3bdf
ci: clean artifacts, move flatpak to release tip
2023-02-27 14:54:44 -08:00
Mitchell Hashimoto
dcff7c2998
ci: try multiarch flatpak builder
2023-02-27 14:38:06 -08:00
Mitchell Hashimoto
533cfbc9b8
ci: add flatpak builder
2023-02-27 14:37:52 -08:00
Mitchell Hashimoto
e3e1e6c521
github: trying to add flatpak builds
2023-02-27 13:58:16 -08:00
Mitchell Hashimoto
3135196442
flatpak: enable ReleaseSafe
2023-02-27 12:01:23 -08:00
Mitchell Hashimoto
a8025f6ec2
termio: env should not freed because arena gets it
2023-02-27 11:55:04 -08:00
Mitchell Hashimoto
83a1d783b1
termio: implement kill command for flatpak
2023-02-27 11:44:18 -08:00
Mitchell Hashimoto
25bde8a351
flatpak: disable strip -- causes crashes
2023-02-27 11:30:51 -08:00
Mitchell Hashimoto
52d22a140c
termio: exec uses new flatpak command, no more host-spawn
2023-02-27 11:26:31 -08:00
Mitchell Hashimoto
630374060d
passwd uses new FlatpakHostCommand
2023-02-27 11:02:59 -08:00
Mitchell Hashimoto
f64d871847
os: FlatpakHostCommand uses thread with its own event loop
2023-02-27 10:18:56 -08:00
Mitchell Hashimoto
1c3d775d90
apprt/embedded: ignore size callbacks that change nothing
2023-02-26 17:44:45 -08:00
Mitchell Hashimoto
7962bd061b
metal: use the screen size reported in the callback to resize
...
We were previously using the bounds which might be updated later if the
view is in the middle of an animation. Just use the size that represents
our target state.
2023-02-26 17:44:14 -08:00
Mitchell Hashimoto
fc64dfa311
macos: on resize do not use the view frame
...
See the comment in the diff.
2023-02-26 17:26:17 -08:00
Mitchell Hashimoto
f89d202b0d
flatpak.HostCommand wip
2023-02-26 10:28:54 -08:00
Mitchell Hashimoto
e227f4d5ef
nix: flatpak stuff should go into linux section
2023-02-26 08:45:24 -08:00
Mitchell Hashimoto
5b9bc9abdb
flatpak: build GTK version
2023-02-25 23:08:04 -08:00
Mitchell Hashimoto
fc3802e632
termio: use host-spawn for pty
2023-02-25 22:36:20 -08:00
Mitchell Hashimoto
f012d31ed5
passwd entry in flatpak needs to trim newlines
2023-02-25 22:25:17 -08:00
Mitchell Hashimoto
6b23dbb169
flatpak: use host-spawn to find default shell
2023-02-25 21:56:51 -08:00
Mitchell Hashimoto
3c81287ffd
ignore flatpak builder files
2023-02-25 21:56:41 -08:00