Skip to content

Compiler only compiles in tty0 #110

Open
@wchill

Description

@wchill

Currently, upon compilation, the code from the editor is sent to tty0 and then gcc is run.
While this isn't a huge problem, it does affect usability, as if a user has the second terminal active and then attempts to compile their code, despite the status messages, it will appear as if nothing has happened (while in fact it has all happened on the first terminal). In addition, if a program is running on the first terminal, it will be killed in the process, which might have undesirable results.

Simple fix is to have the compilation process happen on the active terminal device, not just tty0. Optionally, have a dropdown to select which terminal device to compile on, with the default being the active terminal.

It might also be worthwhile to give programs different names when compiled (eg. on tty0 name it program0, on tty1 name it program1). The reasoning is that if I am running a program on tty0 and need to recompile the program on tty1 and then rerun the program on tty0, I either need to remember to rename tty0's program beforehand or recompile tty0's program as well, since it will get overwritten in the compilation process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions