1. STDIO for LINUX

I will upload a newer version of my io library, which bypasses ncurses
and
lets the programmer write to the tty via the standard functions. My
updated
library fully supports the emulation of get_key() and wait_key() via my
stdgetkey.e hack, which does (or tries to do) some really low-level
stuff
on the terminal. (In the old version, the ncurses-implemented get_key()
was called.)

There is one problem with my library. It can't stop exu from init'ing
ncurses. This does not matter if I'm running a program from my xterm
or console login session. But I can't write an actual daemon with exu,
as it appears to fail mysteriously. At first I couldn't figure out why,
but I finally thought that initscr() or newwin() (both ncurses
functions)
might be failing, which would cause exu to quit without running my
program.
Is there any way to stop exu from exiting, if this is the case? If
there
isn't, then I'll have to write a library and use LD_PRELOAD to override
initscr(), newwin(), and God knows what else to trick exu into working.
(This is not something I look forward to.) Any help is appreciated.

TIA,
jbrown


-- 
http://fastmail.fm - The way email should be...

new topic     » topic index » view message » categorize

2. Re: STDIO for LINUX

jbrown writes:
> At first I couldn't figure out why, but I finally thought that 
> initscr() or newwin() (both ncurses functions)
> might be failing, which would cause exu to quit 
> without running my program.

Euphoria won't call initscr() until your program
does something that requires the screen, e.g.
puts() or printf() to the screen, or system().
In my copy of Euphoria (for the next release)
I recently changed system() so it won't try to 
clear the screen with ncurses unless you have
already done something to the screen. (I noticed one
of my Euphoria CGI scripts was outputing some blanks
to standard output when system() was called.)

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

3. Re: STDIO for LINUX

Any due date for the next release yet? Evan a ballpark idea?

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

4. Re: STDIO for LINUX

Derek Parnell writes:
> Any due date for the next release yet? Evan a ballpark idea?

I wouldn't want to hazard a guess.
There certainly will be a release sometime, but
it won't be in the near future.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

5. Re: STDIO for LINUX

23/08/2002 2:38:48 PM, Robert Craig <rds at RapidEuphoria.com> wrote:

>
>Derek Parnell writes:
>> Any due date for the next release yet? Evan a ballpark idea?
>
>I wouldn't want to hazard a guess.
>There certainly will be a release sometime, but
>it won't be in the near future.
>

Good. 

That gives us all a bit of time to lobby for our favourite item to be included
blink

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

6. Re: STDIO for LINUX

I'm sure you mean "even".  
I obviously wouldn't know.  I barely know when I'll have time to use the 
current version. ;)

P.S. Sorry, I couldn't resist

Derek Parnell wrote:

>
>Any due date for the next release yet? Evan a ballpark idea?
>
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu