tapio / rlutil

C and C++ utilities for cross-platform console roguelike game creation.
http://tapio.github.com/rlutil/
229 stars 42 forks source link

[WIN32] Weird behavior lowest-rightmost CMD character #14

Closed Zorgatone closed 8 years ago

Zorgatone commented 8 years ago

I have this sourcecode: Crook - Roguelike (bug-wincmd branch on file src/crook.c, commit 3e2e1ac)

I'm having a very weird issue on the windows' CMD prompt. I am saving the coordinates correctly (AFAICT), and I'm debugging the player position and the arrow pressed.

If you can test this, go to the lower-rightmost position in the terminal. Everytime x == maxx && y == maxy both the debug info and the player are printed one line above

nabijaczleweli commented 8 years ago

They are independent of any code, it's just Apple badness

nabijaczleweli commented 8 years ago

Can you confirm, that the issue is solved by locate()ing to the bottomrightmost position and using setChar()?

Zorgatone commented 8 years ago

Yes locate() and setChar are working.. (I had to edit the makefile because I didn't have ncurses on windows, but it worked).

See anyhow this screenshots when running the cpp tests.

As you can see I can move outside the current screen bounds and go all the way down the CMD buffer :fearful:

non blocking non blocking arrows arrows test 13 - positioning non blocking

nabijaczleweli commented 8 years ago

If they're working, I believe this is closeable? (setChar() already on master)

nabijaczleweli commented 8 years ago

We should have, like, setString(), to print a string without moving the cursor.

Zorgatone commented 8 years ago

Yep

nabijaczleweli commented 8 years ago

PR underway... right now