Skip to content

ANSI escape codes does not work on Windows #22

@GleisonOliveira

Description

@GleisonOliveira

I'm trying use a console table, but I receive the following error:

Pane requires ANSI escape codes to work. Enable? (Yn) y
** (EXIT from #PID<0.93.0>) an exception was raised:
    ** (ErlangError) Erlang error: :enoent
        (elixir 1.13.2) lib/system.ex:1044: System.cmd("tput", ["lines"], [])
        (pane 0.4.1) lib/viewer.ex:128: Pane.Viewer.max_lines/0
        (pane 0.4.1) lib/viewer.ex:42: Pane.Viewer.init/1
        (stdlib 3.16.1) gen_server.erl:423: :gen_server.init_it/2
        (stdlib 3.16.1) gen_server.erl:390: :gen_server.init_it/6
        (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

Additional info
Os: Windows 10
Prompt: cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions