[Cmdplus-devel] Global Data/Local Data
Status: Pre-Alpha
Brought to you by:
ginge
From: Neil M. <nei...@ho...> - 2002-11-01 15:00:47
|
Hi Currently there is exactly one Console in each running instance of CmdPlus!, which means that all "data" is associated with that console. My question is what should happen when more than one console is allowed to be spawned, either as separate windows or as tabs, or both. The "state" that is flying around is: Console graphics settings, colours etc. (global) Current directory (local) Variables (??) Command history (i.e. press up at the command line) (local) Any other settings flying around. I have put in brackets the ideas for each thing, but variables are tricky: i.e. if you want to access two copies of CVS at once, you need two different CVSROOT variables, but for other things only one copy is best. My idea for this was to have "global" scope, as copied in from the Windows variables, and from any startup file, and then have local scope for variables set after the program starts running. Is this a workable scheme? Does it lack certain things? btw: I haven't been doing much lately because my computer died, and I needed to refind the VS.net CD's, which wasn't easy, but I have found them now. Neil |