aboutsummaryrefslogtreecommitdiff
path: root/core/terminal
Commit message (Collapse)AuthorAgeFilesLines
* core:os -> core:os/old && core:os/os2 -> core:osJeroen van Rijn6 days3-8/+8
|
* Remove all `core:os` imports from JS targetsJeroen van Rijn6 days2-3/+3
| | | | Fix `local_tz_name` on FreeBSD.
* In the middle of porting core:testingJeroen van Rijn7 days3-13/+6
|
* `core:os` -> `core:os/os2` in `core:terminal`Jeroen van Rijn7 days4-17/+20
|
* Use a single `case` rather than `fallthrough`gingerBill2025-12-101-11/+2
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-093-7/+3
|
* Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-084-11/+19
|
* Add bring-your-own-buffer versions of `os.lookup_env` and `os.get_env`Jeroen van Rijn2025-06-161-6/+5
| | | | | | | | | | | | | | | | | And make `core:terminal` use it so that `core:log` can be imported with `-default-to-nil-allocator`, in which the actual allocator is set up in `main()`. Windows was tricky because of the utf-8 <> utf-16 conversion, so we use some temporary stack buffers for that purpose, limiting the non-allocating version there to 512 utf-16 characters each for the key and environment value. In general the value is (obviously) limited to the size of the supplied buffer, and a `.Buffer_Full` error is returned if that buffer is insufficient. If the key is not found, the procedure returns `.Env_Var_Not_Found`. TODO: - Factor out buffer-backed utf8 + utf16 conversion to `core:sys/util` to more easily apply this pattern. - Add similar `lookup_env` and `get_env` procedures to `core:os/os2`. Fixes #5336
* Fix `core:log` on `-target:js_wasm32`Jeroen van Rijn2025-06-021-0/+15
|
* Also use `ENABLE_PROCESSED_OUTPUT` on Windows terminalsFeoramund2025-05-211-2/+2
| | | | | This is specified to be necessary when using `ENABLE_VIRTUAL_TERMINAL_PROCESSING`.
* Restructure `core:terminal` for better Windows supportFeoramund2025-05-214-73/+150
|
* Fix terminal detection on WindowsFeoramund2025-05-211-2/+2
|
* Rename `core:encoding/ansi` to `core:terminal/ansi`Feoramund2025-05-202-0/+157
|
* Add `core:terminal`Feoramund2025-05-204-0/+126