Skip to content

Raw mode support? #215

Description

@idabmat

Host

Tell us about your Host OS (the machine you're building burrito apps on)

Host OS: NixOS
Host CPU: x86_64

Please run zig version in your Burrito project directory and write the version here:
0.15.2

Please run elixir -v in your Burrito project directory and write the version here:
Elixir 1.19.5 (compiled with Erlang/OTP 28)


Target

Same as Host


With OTP28 introducing raw mode support, I wanted to revisit using Elixir for TUI applications. This is working well locally by running the regular mix release on my system with the runtime dependencies installed. I wanted to explore wrapping it with burrito as a next step. But running the binary produced by burrito fails when trying to enter raw mode

:shell.start_interactive({:noshell, :raw})

it returns an {:error, :enotsup}

I reckon I am a bit out my depth here and did try to get some help from a LLM to debug this. The somewhat better lead it gave me was suggesting the ERTS downloaded by burrito might not have TERMCAP support in order to maximize portability. I am currently trying a to build a custom ERTS as the docs suggest to see if I can make some progress.

That being said I was wondering if supporting raw mode was something burrito could support out of the box?

In any case, thanks for this amazing library 💜

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions