Search found 1215 matches

by caseih
Aug 13, 2018 18:00
Forum: General
Topic: Emulating a mainframe
Replies: 23
Views: 439

Re: Emulating a mainframe

I disagree about never going back. TUIs are alive and well and serve very useful purposes. I use several text mode programs with TUIs (menus, windows of sorts) on a regular basis. Remotely and locally. A GUI app will never replace these specific needs, though many have tried over the years.
by caseih
Aug 13, 2018 17:47
Forum: General
Topic: CSV to fixlength data files
Replies: 69
Views: 915

Re: CSV to fixlength data files

Hmm that might be your problem. Reading in 7000 lines is nothing, but printing them out to a com port is relatively slow, even if it might faster than printing each line to the screen. Maybe not horribly slow at higher baud rates (only about a few MB of data), but it will still skew the timings a lo...
by caseih
Aug 13, 2018 14:00
Forum: General
Topic: Emulating a mainframe
Replies: 23
Views: 439

Re: Emulating a mainframe

Sure I can find it. It's made for qb/fblite, but could be adapted to run in normal FB. Give me a couple of days to put it together with a brief example of how to use it.
by caseih
Aug 13, 2018 3:10
Forum: General
Topic: Emulating a mainframe
Replies: 23
Views: 439

Re: Emulating a mainframe

Unix programs would use codes, similar to ANSI codes, to instruct the terminal screen to move the cursor, set the color, and draw characters. So boxes were simply drawn on the screen much like you do it now in FB, with "locate"-like commands, printing box drawing characters. Each character...
by caseih
Aug 13, 2018 2:59
Forum: General
Topic: CSV to fixlength data files
Replies: 69
Views: 915

Re: CSV to fixlength data files

7000 records is very small. Even if you opened the file and read it in one record at a time each time you needed to query it, it would still be a fraction of a second (disk caching would essentially make that an in-memory operation). So something isn't quite right with your algorithm.
by caseih
Aug 12, 2018 21:57
Forum: General
Topic: CSV to fixlength data files
Replies: 69
Views: 915

Re: CSV to fixlength data files

The data has to get into the RAM disk from the slower disk, and get back to the disk at the end. So it works out that just loading the database into memory by your program, and saving it back out at the end, is going to be the exact same speed as a RAM disk. If the database fits in a RAM disk, it wo...
by caseih
Aug 12, 2018 5:05
Forum: General
Topic: CSV to fixlength data files
Replies: 69
Views: 915

Re: CSV to fixlength data files

jj2007 wrote:see http://masm32.com/board/index.php?topic ... 9#msg80189, Converting a *.csv file to a fixed size file

I think it would be far more helpful if you could post a FB program here that did that, rather than a win32 assembler program that won't help Gablea as it won't run on DOS or Linux.
by caseih
Aug 12, 2018 4:58
Forum: General
Topic: CSV to fixlength data files
Replies: 69
Views: 915

Re: CSV to fixlength data files

dosbox will run the FB/DOS compiler on any machine, on any architecture, any OS. It's not the fastest little emulator in the world, but it's at least as fast as a 386 computer. It's not ideal for your POS program, though, as it doesn't have any direct way of communicating with actual hardware (seri...
by caseih
Aug 09, 2018 1:56
Forum: General
Topic: How do they Do It? - Onscreen list
Replies: 20
Views: 486

Re: How do they Do It? - Onscreen list

Pretty sure Gablea knows how to put text and borders on the screen. His question is more how does the backend work for dynamic displays of lists of data, or menu items. If you had a database of a million items, how would you display them?
by caseih
Aug 08, 2018 13:31
Forum: General
Topic: How do they Do It? - Onscreen list
Replies: 20
Views: 486

Re: How do they Do It? - Onscreen list

That is intresting. So when it generates the list would is populate the list at once or does it do it in stages? (As the user presses the up and down key) That all depends. Probably most lists are either already populated internally, or done so at the time the menu is displayed. Or it could be a hy...
by caseih
Aug 07, 2018 23:18
Forum: General
Topic: How do they Do It? - Onscreen list
Replies: 20
Views: 486

Re: How do they Do It? - Onscreen list

Wow a blast from the past. Remember the "exploding" pop ups where the window would kind of zoom in? Anyway, there were several BASIC routines back in the day for popping up menus like that. Many of them actually saved the contents of the character cells to a buffer for redrawing after the ...
by caseih
Aug 07, 2018 17:47
Forum: DOS
Topic: Watcom debugger with FBC?
Replies: 2
Views: 166

Re: Watcom debugger with FBC?

EDIT: Probably not. FB uses the DJGPP linker and debug symbol format. See Marcov's response below.
by caseih
Aug 05, 2018 14:26
Forum: Libraries
Topic: GTK problem with FreeBasic 1.05
Replies: 10
Views: 328

Re: GTK problem with FreeBasic 1.05

Off topic here. I know you think pretty highly of your own assembly skills, but compilers are much better than you give them credit for. I watched a really cool talk recently about using C++17 with advanced features like object-oriented programming and templates to make a game that compiled down to ...
by caseih
Aug 04, 2018 14:47
Forum: Libraries
Topic: GTK problem with FreeBasic 1.05
Replies: 10
Views: 328

Re: GTK problem with FreeBasic 1.05

Try defining a global variable g_mutex_unlock . Sometimes that helps. No. g_mutex_unlock is an internal part of glib. If the linker can't find it something isn't quite right between the header files and the actual shared library, and things may not function as they should if you just make that symb...
by caseih
Aug 03, 2018 2:35
Forum: DOS
Topic: 32 bit TSR in FreeBasic (yes, it worked, in the end)
Replies: 35
Views: 832

Re: 32 bit TSR in FreeBasic (yes, it worked, in the end)

Yes X11 should be able to use two monitors. I'm not totally sure what configuration would be necessary, or if it would just detect it automatically. What I'd do if I were doing something like your POS would be to use a normal login manager set to auto login as the POS user, and then I'd use a $HOME/...

Go to advanced search