ullaskunder3 / Solution-to-graphics.h

My vs code setup for graphics.h ( I know its old, have to learn because of university they use turbo 😱. Vs code is way better 😍)
https://ullaskunder3.github.io/Solution-to-graphics.h/
47 stars 41 forks source link

Query #1

Closed akshitbtw closed 3 years ago

akshitbtw commented 3 years ago

Hi, I'm new to GitHub so idk how to ask a query, that's why I'm writing it here. First of all thanks for this amazing solution. I managed to add the compile options in tasks.json & found a way to run it through code-runner extension.

My query : Do you know how can we combine the 'WIndows BGI' popup window (that comes at the time of running the program) with the terminal? Because I've been working on user input programs and I have to write the user input separately in the integrated terminal of VS code. Like in TurboC, the output of printf commands as well as the graphics commands(like line, rectangle, arc) comes in the same window. But in VS code, I've to use the outtextxy command so that the input strings show in the Windows BGI.

Do let me know if you know how to fix this.

ullaskunder3 commented 3 years ago

Can you share the code if possible? I would like to see exactly what you are talking about....

On Mon, Apr 26, 2021 at 4:38 PM akshitbtw @.***> wrote:

Hi, I'm new to GitHub so idk how to ask a query, that's why I'm writing it here. First of all thanks for this amazing solution. I managed to add the compile options in tasks.json & found a way to run it through code-runner extension.

My query : Do you know how can we combine the 'WIndows BGI' popup window that comes at the time of running the program with the terminal? Because I've been working on user input programs and I have to write the user input separately in the integrated terminal of VS code. Like in TurboC, the output of printf commands as well as the graphics commands(like line, rectangle, arc) comes in the same window. But in VS code, I've to use the outtextxy command so that the input strings show in the Windows BGI.

Do let me know if you know how to do this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ullaskunder3/Solutions/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZQNXA6LYIBPJENKDOBABTTKVCT5ANCNFSM43SVA3UA .

ullaskunder3 commented 3 years ago

User input!

Screenshot 2021-04-27 001349

Is this what you are talking about...

akshitbtw commented 3 years ago

code

In turboc, the user input as well as the graphics come in the same window. But in vs code, you have to enter the input in the integrated terminal and the output comes in a separate window. So I was thinking whether there is a way through which we can combine them in the same window.

akshitbtw commented 3 years ago

turboc Output

This is how turboc's output looks like.

ullaskunder3 commented 3 years ago

sorry to disappoint you but I don't think that is possible because vs code and mingw.graphics.h is totally separate...

ullaskunder3 commented 3 years ago

code

In turboc, the user input as well as the graphics come in the same window. But in vs code, you have to enter the input in the integrated terminal and the output comes in a separate window. So I was thinking whether there is a way through which we can combine them in the same window.

Good thought though... you might research on it in future may be you can create an extension that do the trick good look

akshitbtw commented 3 years ago

No Problem Man! Thanks for your time :D