Mitchell Hashimoto
24ec9f7e2a
Merge pull request #202 from mitchellh/locale
...
validate locale prior to setting, fallback to en_US.UTF-8
2023-07-11 12:04:35 -07:00
Mitchell Hashimoto
0849aa8f20
validate locale prior to setting, fallback to en_US.UTF-8
...
Fixes #201
I don't fully understand locales, but it appears that the locale
returned from NSLocale can be "valid" in general but invalid according
to libc's locale API. If you attempt to `setlocale` with this bad
locale, it defaults everything to "C", which ends up breaking a lot of
things.
This commit validates the locale, and if it is invalid, we default to
"en_US.UTF-8" so things tend to work. This behavior can be overridden
using standard environment variables (LANG, LC_ALL, etc.).
This also doesn't touch env vars so further subprocesses from the shell
see original locale env vars.
2023-07-11 11:50:12 -07:00
Mitchell Hashimoto
bf25bf0a6a
move a bunch of files to src/os
2023-07-10 16:48:22 -07:00
Mitchell Hashimoto
9300404603
font: block cursor was not taking full cell width
2023-07-10 11:45:35 -07:00
Mitchell Hashimoto
ea268bae5e
renderer: do not blink explicit steady cursor styles
2023-07-10 11:27:37 -07:00
Mitchell Hashimoto
1028d517e4
do not write scrollback file for alternate screens
2023-07-09 13:03:29 -07:00
Mitchell Hashimoto
187fc40c31
Merge pull request #200 from mitchellh/screen-string
...
Write scrollback to file, output to tty ("write_scrollback_file" binding)
2023-07-09 12:41:10 -07:00
Mitchell Hashimoto
5faafbbfa5
write_scrollback_file binding
2023-07-09 12:28:48 -07:00
Mitchell Hashimoto
9a0d131b5b
move TempDir to src/os and use the real tmpDir
2023-07-09 12:14:05 -07:00
Mitchell Hashimoto
26e17de777
add os.tmpDir to get the recommended temp dir base path
2023-07-09 11:58:04 -07:00
Mitchell Hashimoto
791e1a84af
terminal: don't export plainString, its only for testing
2023-07-09 11:56:19 -07:00
Mitchell Hashimoto
a890cc3a5b
terminal: add screen.dumpString
2023-07-09 11:52:37 -07:00
Mitchell Hashimoto
88c41bcf69
Merge pull request #199 from mitchellh/update-deps
...
Update C Deps
2023-07-09 11:06:33 -07:00
Mitchell Hashimoto
23c5ba9810
vendor: update utf8proc
2023-07-09 10:46:07 -07:00
Mitchell Hashimoto
bdbef94b70
vendor: update libpng
2023-07-09 10:45:18 -07:00
Mitchell Hashimoto
6ec6ae7cb2
vendor: update pixman
2023-07-09 10:43:52 -07:00
Mitchell Hashimoto
c853df7527
vendor: update harfbuzz
2023-07-09 10:42:54 -07:00
Mitchell Hashimoto
678072e9b5
update freetype to 2.13.1
2023-07-09 10:42:07 -07:00
Mitchell Hashimoto
020772f777
update zig
2023-07-09 10:38:41 -07:00
Mitchell Hashimoto
dfd0bbc7f1
Merge pull request #198 from mitchellh/scroll-viewport
...
Do not move viewport if scrolling when the viewport is already not at the bottom
2023-07-08 14:07:52 -07:00
Mitchell Hashimoto
de66d4925a
terminal: rename scroll "delta/delta_no_grow" to screen/viewport
2023-07-08 13:47:16 -07:00
Mitchell Hashimoto
1a94f6ba7d
terminal: do not scroll viewport if new lines are added while scrolled
2023-07-08 13:42:00 -07:00
Mitchell Hashimoto
13315471d7
renderer: double line widths for sprite fonts when font-thicken is true
...
Fixes #193
2023-07-07 09:08:46 -07:00
Mitchell Hashimoto
3f079e89b9
Merge pull request #191 from mitchellh/shell-integration
...
Automatic Shell Integration Script Injection
2023-07-06 18:29:15 -07:00
Mitchell Hashimoto
7e42d163ad
update README
2023-07-06 18:27:21 -07:00
Mitchell Hashimoto
247638c2da
config: support enum cloning
2023-07-06 18:13:26 -07:00
Mitchell Hashimoto
02d0619f87
change "auto" to "detect" for shell integration
2023-07-06 18:05:01 -07:00
Mitchell Hashimoto
8239f09d9d
allow configuring shell integration injection
2023-07-06 18:04:12 -07:00
Mitchell Hashimoto
18e43ddb3f
config: support parsing enums
2023-07-06 17:56:19 -07:00
Mitchell Hashimoto
80e2cd4e78
zsh integration
2023-07-06 17:46:54 -07:00
Mitchell Hashimoto
4cdad44119
zsh files starting
2023-07-06 16:42:01 -07:00
Mitchell Hashimoto
efd7cb35b8
fish: pwd reporting
2023-07-06 16:15:30 -07:00
Mitchell Hashimoto
ad62e3ac1b
fish shell integration
2023-07-06 16:10:30 -07:00
Mitchell Hashimoto
ae206b2f89
termio: fish shell integration injection
2023-07-06 14:14:55 -07:00
Mitchell Hashimoto
59fb3a55e3
termio/exec: refactor resources dir lookup to prep for shell integ
2023-07-06 13:42:06 -07:00
Mitchell Hashimoto
848943770a
start shell-integration folder, copy into zig-out
2023-07-06 13:26:28 -07:00
Mitchell Hashimoto
bf1e5f6331
Merge pull request #188 from mitchellh/prompt-jump
...
Scroll to prompt keybinding
2023-07-06 10:52:46 -07:00
Mitchell Hashimoto
b3b19997ea
terminal: scroll to row always tries to get it to the top
2023-07-06 10:31:47 -07:00
Mitchell Hashimoto
9f86c48fd8
keybinding jump_to_prompt for semantic prompts
2023-07-06 10:30:29 -07:00
Mitchell Hashimoto
b542f7e3c4
terminal: jump to prompt core methods
2023-07-06 10:16:07 -07:00
Mitchell Hashimoto
c4a44c3dd4
Merge pull request #187 from mitchellh/clear-at-prompt
...
clear_screen uses FF (0x0C) if cursor is at prompt
2023-07-05 14:21:27 -07:00
Mitchell Hashimoto
2f935d2c5c
clear_screen uses FF (0x0C) if cursor is at prompt
2023-07-05 14:16:34 -07:00
Mitchell Hashimoto
2ac9fec908
Merge pull request #186 from mitchellh/clear-screen
...
clear_screen keybinding works even when not at shell prompt
2023-07-05 14:11:12 -07:00
Mitchell Hashimoto
9d008bb828
Merge pull request #185 from mitchellh/font-features
...
font-feature config to enable/disable OpenType Font Features
2023-07-05 14:01:57 -07:00
Mitchell Hashimoto
738c4dff4c
clear_screen keybinding works even when not at shell prompt
...
Instead of sending formfeed (0x0C), clear_screen actually does a
terminal emulator level clear instead. This MOSTLY matches the behavior
of iTerm and Terminal.app, with some differences:
1. I do not clear _below_ the cursor. I feel like the use case for
this feature is primarily to clear above the cursor. Happy to be
wrong here but I want it proven to me!
2. I do not clear in alternate screen mode. Clearing alt screens
breaks rendering in Vim, less, etc. and it feels like the wrong
behavior.
2023-07-05 14:01:01 -07:00
Mitchell Hashimoto
45ac9b5d4c
font-feature config to enable/disable OpenType Font Features
2023-07-05 13:12:30 -07:00
Mitchell Hashimoto
853f15ef19
bar cursor was short by a couple pixels
2023-07-04 13:12:21 -07:00
Mitchell Hashimoto
0b5ff8f311
update zig
2023-07-04 13:07:17 -07:00
Mitchell Hashimoto
a2c8690c23
Merge pull request #180 from mitchellh/transparent
...
Background Transparency and Blurring (1337 h4x0r mode 🤪 )
2023-07-03 21:05:12 -07:00
Mitchell Hashimoto
9a079bb5b9
background-blur-radius for macOS
2023-07-03 20:43:53 -07:00