All, Sorry about this one in advance; It isn't a fltk question, but I thought some of the folk around here might have an answer for me!
(Background) Anyway - I have this tool (written in fltk - see, it is on-topic!), which runs an interpreter in a window. The interpreter process is fork'd then exec'd with i/o via pipes to the window. The window is fixed size, and the interpreter is told the window size when it is exec'd. All good so far... (Problem) But, now I want to make the window resizable, so I need to tell the interpreter about the size changes. Some form of IPC is clearly needed, so I was all set to add an extra pipe to handle this OOB control info alongside the primary i/o path. (Question) However - it occurs to me this is really just a shell running in a terminal. So... does anybody know how xterm (or equivalent) passes resize info to the bash or sh or csh (or whatever) process that is running within it? On my test box, when I resize my terminal (gnome-terminal running bash in that case) I see that the environment vars LINES and COLUMNS get updated to reflect the new size. How is this done? I can't think how the parent process (the terminal) can directly modify the environment of the child (the shell) - can that be done? How? Seems like a pretty dodgy thing to allow... Or do the shell processes have some sort of IPC that allows the resize to be sent to the child? (If so, does anyone know what?) That seems most likely (and it's what I was about to write!) but if there is Another Way I'd be very interested to hear. Anyway, I've just grabbed a recent set of xterm sources, but it's getting late here and so far I haven't been able to figure out what it's doing at all...! Cheers, -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

