1566 Commits

Author SHA1 Message Date
Mitchell Hashimoto
b5bb74e749 Merge pull request #84 from mitchellh/resize
Resize Fixes
2023-03-02 13:53:20 -08:00
Mitchell Hashimoto
4ececc8923 screen: resize rows should use old cols value 2023-03-02 13:46:58 -08:00
Mitchell Hashimoto
5573df4947 terminal: erase display complete needs to reset row wrap state 2023-03-02 13:20:06 -08:00
Mitchell Hashimoto
e28d20a05d disable the auto balance config by default, add some padding
This makes resizing too jittery which I think is a worse out of the box
experience than the padding.
2023-03-02 12:55:46 -08:00
Mitchell Hashimoto
abd896b34a Merge pull request #83 from mitchellh/resize
Resize Fixes
2023-03-01 22:23:56 -08:00
Mitchell Hashimoto
89cdac6bf3 Merge pull request #82 from mitchellh/dependabot/github_actions/cachix/install-nix-action-20
build(deps): bump cachix/install-nix-action from 19 to 20
2023-03-01 22:22:54 -08:00
Mitchell Hashimoto
ba96a2c023 screen: adding cols doesn't mess with the viewport
This was untested anyways, and the result was bugs!
2023-03-01 22:14:19 -08:00
Mitchell Hashimoto
28378a350d screen: shrinking cols trims trailing blank lines 2023-03-01 22:01:42 -08:00
Mitchell Hashimoto
05fe2a83b1 terminal: erase display below should unwrap soft wrapped state 2023-03-01 21:30:31 -08:00
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
dependabot[bot]
cb8f44667e build(deps): bump cachix/install-nix-action from 19 to 20
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 01:14:11 +00: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