QB64 Portable Version / Pure Console /SDL

by qbguy (no login)

Here my idea for specifying which library to use.

Add the command line option -lib which can be omitted. Options are:

-lib none (or -lib ansi)

Use only ANSI C++. Pure text IO with no ability to clear the screen or control cursor position etc.

Advantages: Can be used in an Emacs buffer, portable to all systems with a C++ compiler, can be used over TELNET/SSH, can be used as a CGI daemon, smaller Exe size, allows piping, redirecting.

-lib curses (or -lib conio)

Use the Curses library (or conio library) for text IO with LOCATE, CLS, and other cursor control functions. Still portable to Linux, Windows as well as whatever else curses (or conio if you decide to use that instead) runs on.

Advantages: Can be used over TELNET/SSH, can be used as a CGI daemon, smaller Exe size, allows piping redirecting.

-lib sdl (default)

Uses the SDL library to do graphics and text. Still portable to Linux and Windows and whatever else curses runs on.

Advantages: Allows graphics, mouse, and other QBASIC features not provided by the two other options.

We already have lib sdl, and lib none should be pretty easy to make.

Posted on May 24, 2008, 11:10 AM
from IP address 75.16.101.187

Respond to this message   

Return to Index


Response TitleAuthor and Date
I think that's an excellent idea for Galleon to consider... on May 24
 * I think it is a good idea too, though I'm not fond of leaving out things like CLS... @_@rpgfan3233 on May 24
  Wouldn't that be the user's choice because of the library options, RPG... on May 24
   Clearing the screen, moving cursor, setting colorqbguy on May 24
    * Using the formfeed character doesn't work in Windows or DOS seemingly. :-/rpgfan3233 on May 24
     * I recall I hated the form feed character and used clrscr() instead. on May 24
   CLS and LOCATE wouldn't work.rpgfan3233 on May 24
RE: Portable Version / Pure Console / SDL on May 24
 * Find a way to get my QB programs running on the Nintendo DS, and I'll be impressed! ;-)XO-XD on May 27
  * Doesn't FB do that either? on May 27
   * Not yet. :-]]XO-XD on May 29
    i suppose there are a lot directions qb64 could go inmennonite on May 29