Full support for list /c using @consoleb

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Dec 13, 2009
2
0
#1
[LIST /C] only works in stand-alone TCC windows, not in Take Command tab windows.
Could this restriction be lifted now that you support @consoleb?

In the meantime, I'm using this 1-line alias as a workaround:
listc=set _save=%@consoleb[-1] %+ echo %@consoleb[0] >NUL %+ list %$ %+ echo %@consoleb[%_save] >NUL %+ set _save=
But it seems that this would leak, because there doesn't seem to be any way to release the temporary buffer when done. (I tried @bfree and not surprisingly crashed the session.)

Thanks!
 

samintz

Scott Mintz
May 20, 2008
1,203
11
Solon, OH, USA
#2
LIST /C works just fine in a tabbed window for me. What version of TC are
you running?

-Scott

jdmarch <> wrote on 12/16/2009 09:07:56 AM:


> Quote:
>
> [LIST /C] only works in stand-alone TCC windows, not in Take Command
> tab windows.
>
> Could this restriction be lifted now that you support @consoleb?
>
> In the meantime, I'm using this 1-line alias as a workaround:
> Quote:
>
> listc=set _save=%@consoleb[-1] %+ echo %@consoleb[0] >NUL %+ list %$
> %+ echo %@consoleb[%_save] >NUL %+ set _save=
>
> But it seems that this would leak, because there doesn't seem to be
> any way to release the temporary buffer when done. (I tried @bfree
> and not surprisingly crashed the session.)
>
> Thanks!
>
>
 

rconn

Administrator
Staff member
May 14, 2008
10,100
85
#4
> ---Quote---
> [LIST /C] only works in stand-alone *TCC* windows, not in *Take
> Command* tab windows.
> ---End Quote---
> Could this restriction be lifted now that you support @consoleb?
No; it's a Windows limitation. There's no way for TCMD to know that a
console window has changed to a new console.

Rex Conn
JP Software
 
Dec 13, 2009
2
0
#5
No; it's a Windows limitation. There's no way for TCMD to know that a console window has changed to a new console.
Sorry, Rex, I'm lost. Isn't the point of /c to avoid cluttering the screen buffer? (It certainly is for me.) The alias in my original post does this AFAICT. If an alias can do it, can't a command do it?

Also, can you address the memory leakage issue that I raised in the original post? (When @consoleb is used to make and use a temporary screen buffer, is that buffer deallocated? If not, isn't this a bug?)

Thank you!
 
#6
On Wed, 16 Dec 2009 19:25:34 -0600, rconn <>
was claimed to have wrote:


>---Quote---
>> ---Quote---
>>[LIST /C] only works in stand-alone *TCC* windows, not in *Take
>> Command* tab windows.
>> ---End Quote---
>> Could this restriction be lifted now that you support @consoleb?
>---End Quote---
>No; it's a Windows limitation. There's no way for TCMD to know that a
>console window has changed to a new console.
Couldn't TCC tell TCMD?