1. Text Mode UI Library

This is a link to a BitBucket temporary repository of a text mode UI library initially developed by Irv Mullins with some enhancements by me.

Please test it out and submit any fixes/enhancements.

I haven't used it in a looOOooOOng time, but it's mostly working for me in Windows 7.

There is at least one bug: run the demo and do the "Check box" demo.

new topic     » topic index » view message » categorize

2. Re: Text Mode UI Library

euphoric said...

Please test it out and submit any fixes/enhancements.

I haven't used it in a looOOooOOng time, but it's mostly working for me in Windows 7.

There is at least one bug: run the demo and do the "Check box" demo.

The borders are kinda goofy here on linux, and the arrow key thing prevents me from navigating, but it seems basically functional. I think Derek said that he was going to look into the arrow key thing (I believe it also happens on Windows from a MinGW built euphoria).

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Text Mode UI Library

mattlewis said...

The borders are kinda goofy here on linux, and the arrow key thing prevents me from navigating, but it seems basically functional. I think Derek said that he was going to look into the arrow key thing (I believe it also happens on Windows from a MinGW built euphoria).

Oddly enough, on the same PC with Windows 7, the arrow keys work for me for that textmode UI demo, but do not work for me in another program that has a text mode interface. So that's weird...

new topic     » goto parent     » topic index » view message » categorize

4. Re: Text Mode UI Library



Where is dialogs.e?

useless

Nevermind, i found it since you gave a link in another post. It reminds me of the olde Turbo Pascal windows 3.1 interface, which beats nothing, or it beats everything, depending on how you understand it. I'd use it.

I got a crash in the radio button demo, it says {128,34} (or some other numbers) aren't numbers, type check error.

Suggestion / request: ability to use a mouse.

useless

new topic     » goto parent     » topic index » view message » categorize

5. Re: Text Mode UI Library

useless said...

I got a crash in the radio button demo, it says {128,34} (or some other numbers) aren't numbers, type check error.

Yeah, I get that error too, kat. Haven't been able to diagnose it yet, but I'm sure it's a simple fix. There might also be more bugs. getlost

useless said...

Suggestion / request: ability to use a mouse.

That's a good suggestion. I can't implement it, but feel free if you can.

If you make any changes, feel free to email them to me or post 'em here. If you have a bitbucket account you can use Mercurial to push changes to the repo. Let me know...

new topic     » goto parent     » topic index » view message » categorize

6. Re: Text Mode UI Library

Hi

Several years ago I adopted and adapted dialogs.e for use with my database - it now is the basis for the entire system. I have modded it quite heavily, it's still very simple to use, is cross platform, and on the number of machines I have tested it on does not seem to have cursor key anomalies (see the wait_key_nn and get_key_nn fuctions - uses a key buffer queue recognition), and I also had a problem with background highlighting wich was fixed by DP, but which I used a slightly different method of fixing - just didn't allow them on those consoles that couldn't display highlighted backgrounds.

The lines on linux consoles are difficult to display from different console to different console, so I opted for simple text characters - the lines work fine on Windows xp consoles.

The mouse is a different kettle of fish - On Linux you would use calls to gpm to find the mouse position, but as this would require polling of gpm, it kind of defeats the simplicity of the library. Similarly on dos / windows dos consoles a custom mouse poller would be needed, which would distract from the text mode entry method.

The includes use the pre 4.0 system, and require 3.1 includes in place - this works for me, and I have no reason to change it at the moment, however this works fine under eu 4, and I even use 4 std/includes in other parts of the program. There are other sections which predate eu 4 that I could have updated - eg testing whether on Linux or Windows.

Anyway, here is my contribution to this thread
Fdialogs.ex http://openeuphoria.org/pastey/91.wc
demo.exu http://openeuphoria.org/pastey/92.wc
MFTest.exu (Mixed form testing) http://openeuphoria.org/pastey/93.wc

Chris

Ah, i see there's a limit on Pastey - go here for Fdialogs http://www.box.net/shared/ga9lntsa0zj9gzudgybc

Chris

There doesn't seem to be facility to delete those pasteys - any chance anyone can tidy up and delete them (91 and 94)?

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu