WraitheDX / realms_shattered

This is a CLI (command line interface) text RPG programmed in C++.
11 stars 6 forks source link

Add Linux support #9

Closed WraitheDX closed 4 years ago

WraitheDX commented 4 years ago

For now, just mirroring the functionality found in the platform_windows header and source, and adding the abstracted calls to the platform header and source would be wonderful.

WraitheDX commented 4 years ago

That is wonderful, thank you! ^ ^

On Wed, Sep 30, 2020, 10:18 AM Ahmed Elmayyah notifications@github.com wrote:

I am working on this issue right now :D

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WraitheDX/realms_shattered/issues/9#issuecomment-701527927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZPEBM76S3IEF3G5FP6YDDSINR5XANCNFSM4R5VE54A .

Satharus commented 4 years ago

@WraitheDX

There's a slight problem, getting the terminal cursor position and setting the window title in Linux are usually not possible without using nCurses which is an external library and a little bit of a hassle to work with.

are these function needed?

WraitheDX commented 4 years ago

@Satharus Bummer, thank you for the heads up!

The window title is not a big deal at all, but setting the cursor position is a must. Are there any non-curses workarounds?

Satharus commented 4 years ago

No worries!

Don't worry about setting the cursor position, that works fine. The problem is in getting the cursor position.

However I am taking a look right now to see if there are any workarounds :D

WraitheDX commented 4 years ago

Wonderful! Is obtaining the console's buffer size an issue? A lot of code requires that info.

Satharus commented 4 years ago

The size works fine yeah :D Shouldn't be an issue.

WraitheDX commented 4 years ago

@Satharus

Thank you so much, it is very exciting to have my first merge from a contributor!

Satharus commented 4 years ago

No need at all!

Glad that it is useful :D

Good luck with your project, I'll definitely be following it!