Skip to content

Feature Request: Ability to map file descriptors to consoles #69

@trustytrojan

Description

@trustytrojan

Feature Request

What feature are you suggesting?

Overview:

  • Add the ability to map file descriptors to PrintConsole objects, so that an application can print to several and display any of them as needed (either on the top or bottom screen, or switching between consoles like Linux's TTYs for example).

Smaller Details:

  • Involves figuring out what newlib passes to the devoptab_t's write_r callback
  • Add a table in console.c to map FDs to consoles, and a function to create mappings
  • In con_write use the passed fd to select the console to render to

Why would this feature be useful?

  • This can make debugging better by separating streams into different consoles for different components of an application
  • In the case of console-only apps, this can add the ability to have separate windows for tasks/sub-applications

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