Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Terminals

    SDL Terminal 1.1.3

    Download button

    Downloads: 2,545  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.6/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Nicolas P. Rougier | More programs
    GPL / FREE
    April 20th, 2008, 10:55 GMT
    ROOT / Terminals

     Read user reviews (0)  Refer to a friend  Subscribe

    SDL Terminal description

    SDL Terminal is a library that allows to have a pseudo-ansi color terminal that can be used with any SDL application.

    SDL Terminal is a library that allows to have a pseudo-ansi color terminal that can be used with any SDL application (without or with OpenGL). The internal terminal surface is an SDL surface that is mapped to a texture when OpenGL is used (and then it is quite simple to use the texture to map it on any GL surface, like in the glcube example from distribution). Any user input raises an SDL_TERMINALEVENT that can be catched like any other SDL event and the event structure holds the user actual input.

    Usage example:

    /* Terminal creation and settings */
    SDL_Terminal *terminal = SDL_CreateTerminal ();
    SDL_TerminalSetFont (terminal, "./VeraMono.ttf", 12);
    SDL_TerminalSetSize (terminal, 80, 24);
    SDL_TerminalSetPosition (terminal, 10, 10);
    ...

    /* Print a new line of text on terminal */
    SDL_TerminalPrint (terminal, "Hello !");
    ...

    /* Blit terminal onto current video surface */
    SDL_TerminalBlit (terminal);
    ...

    /* Catch terminal event and get user input */
    switch (event.type) {
    case SDL_TERMINALEVENT:
    printf ("User input: %sn", (char *) event.user.data2);
    ...


    The SDL Terminal package comes with several examples showing how to use terminal either in 2D mode or 3D mode. Another example demonstrate the emulation of a python console using the SDL Terminal.

    Product's homepage

      


    TAGS:

    SDL shell | SDL terminal | ansi color terminal | SDL | pseudo-ansi | OpenGL

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM