Skip to content

Unable to debug TUI applications using RAW mode or other terminal features #87

@InDieTasten

Description

@InDieTasten

Issue

I've got an application written in Lua that enters into the raw terminal mode. However, when trying to debug the application, I run into the issue that input and output are redirected from/into file like streams (I assume to integrate properly with the Video Studio Code Debug Console). The Visual Studio Code debug console doesn't support raw mode and it's not really a terminal at all, so terminal applications simply won't work.

To reproduce my issue, you can run the following on any debian-like system:

os.execute("/bin/stty raw") -- enables raw mode
os.execute("/bin/stty sane") -- disables raw mode

The "Debug Console" shows errors right away when debugging:

/bin/stty: 'standard input': Inappropriate ioctl for device

Image

Request

It would be great if there was a way for me to debug my application with input and output bound to an instance of the integrated terminal, such that raw mode and other things from stty will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions