chrisalviola
- 80
- 0
Is there a way I can write characters or numbers anywhere on the screen in C++ like the ones used in pascal like gotoxy where I simply write screen coordinates as x & y.
The discussion revolves around methods for positioning characters or numbers on the screen in C++, similar to the "gotoxy" function in Pascal. It explores various libraries and approaches across different operating systems and environments, including standard C++, Unix, and GUI frameworks.
Participants present multiple approaches and libraries for achieving character positioning in C++, indicating a lack of consensus on a single solution. Various opinions on the best methods and libraries are shared, reflecting differing preferences and experiences.
Participants reference specific libraries and frameworks, but the discussion does not resolve the best approach for all scenarios, as it depends on the user's environment and requirements.
This discussion may be useful for C++ programmers looking for methods to position text on the screen, particularly those working across different operating systems or interested in GUI development.
mgb_phys said:Under unix there is a library called curses (or ncurses in newer versions) to do printing effects on a character terminal.
Under a GUI it would depend on what platform but most have the ability to write text at a particular coordinate in a window, or you could use something like OpenGL.