Sign in to follow this  

[SDL/C++][Release] GUI console class

This topic is 3591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I've been working on a GUI console class, which will (in SDL) draw a console for you :). Its written in C++ and uses SDL + SDL_ttf for the drawings. The console contains: - ttf font handling - a cursor, indicating at which position you are (movable) - automatically add an enter if it exceeds the width - a variable line in which people can edit, once they press return it will submit it, if Shift+return is pressed it will just add an enter I think it can be optimised and improved more, so every suggestion or complaint can go here :). Thanks for using and/or discussing/improving :) Download: GUI_console.tgz Keys useable: - any character key - return (and with shift pressed) - delete, backspace, tab - left, right, up, down - home, end Source files: - codeblocks project files - main.cpp: example script of how to use it - gui_console.h: the class definition - gui_console_cursor.h: functions related to cursor coordination - gui_console_gui.h: main console drawing functions - gui_console_input.h: keyboard input handling Needed library: sdlmain, SDL.dll, SDL_ttf.dll Executable is for Windows XP 32bit Screenshot: Screenshot Decrius [Edited by - Decrius on February 16, 2008 8:42:05 AM]

Share this post


Link to post
Share on other sites

This topic is 3591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this