Path: utzoo!utgpu!jarvis.csri.toronto.edu!utcsri!me!radio!cks From: cks@radio.toronto.edu (Chris Siebenmann) Newsgroups: comp.sys.amiga Subject: Re: Planning for Shell 20.8M Message-ID: <944@radio.toronto.edu> Date: 31 Jan 88 05:24:16 GMT Article-I.D.: radio.944 Posted: Sun Jan 31 00:24:16 1988 References: <8801221705.AA20640@decwrl.dec.com> Reply-To: cks@radio.toronto.edu (Chris Siebenmann) Organization: Newsaholics Anonymous Lines: 25 In article <8801221705.AA20640@decwrl.dec.com> drew@cgofs.dec.com (Steve Drew) writes: ... : 1. $_titlebar variable, : -------------------- : - ability to set title bar via variable. : eg. alias cd "%q \\cd $q; set _titlebar $_cwd" : : Problem, when quiting shell, the memory allocated for the titlebar : variable is free'd, and next time someone clicks on the title it : blanks out. What would be the best way to handle this? maybe : AllocMem() the few bytes for the string, and never free it? I noticed this problem myself about two days after I posted my modification to Hobie's patch. What I did was to save the old window title on startup, and restore it on exit. I think doing that is better than swiping some memory permanently for a title; I tend to run recursive shells and shells from withing makefiles a lot, and would hate to lose some memory each time. I agree that a _titlebar variable is a cleaner way to do title bar changing than the cd/pwd hack. -- "I shall clasp my hands together and bow to the corners of the world." Number Ten Ox, "Bridge of Birds" Chris Siebenmann {allegra,mnetor,decvax,pyramid}!utgpu!radio!cks cks@radio.toronto.edu or ...!utgpu!{chp!hak!ziebmef,ontmoh}!cks