Need help with :echo function
Posted: 28 Dec 2010 15:11
First I just want to say that I LOVE this site. It has helped me become 10 times better (maybe 100) with batch scripting which has saved me many hundreds of hours of manual effort for sure. Thank you to everyone who has contributed to what is available here.
Secondly, I have some questions about the :echo function (http://www.dostips.com/DtCodeCmdLib.php#Function.echo) referenced on this site and how I can get it to behave a little differently.
I have a menu driven script I wrote that helps my team and I to manage admin rights here at my company and I recently threw the :echo function to get a nicer looking display and to make problems / errors more noticeable when they occur. The problem I'm having is that my script runs at 100 columns wide and the :echo function seems to be doing some window resizing while it's performing its magic. This is a problem because it cuts off some of the text that existed between columns 81 and 100, which can sometimes be important data to the task I'm working on.
I would love to better understand how this :echo function works to do what I assume is generating dynamic ANSI codes to get the text to output in a different color without changing all the text on the screen, or if that magic must remain a mystery I would like to at least prevent the function (or .com file) from resizing my window and cutting off some of my text.
Anyway, love the site, and thanks in advance if you can help with this one.
EDIT: I did attempt to search for :echo but that is apparently too common a term to use in the search function here so please pardon me if this question has already been addressed.
Secondly, I have some questions about the :echo function (http://www.dostips.com/DtCodeCmdLib.php#Function.echo) referenced on this site and how I can get it to behave a little differently.
I have a menu driven script I wrote that helps my team and I to manage admin rights here at my company and I recently threw the :echo function to get a nicer looking display and to make problems / errors more noticeable when they occur. The problem I'm having is that my script runs at 100 columns wide and the :echo function seems to be doing some window resizing while it's performing its magic. This is a problem because it cuts off some of the text that existed between columns 81 and 100, which can sometimes be important data to the task I'm working on.
I would love to better understand how this :echo function works to do what I assume is generating dynamic ANSI codes to get the text to output in a different color without changing all the text on the screen, or if that magic must remain a mystery I would like to at least prevent the function (or .com file) from resizing my window and cutting off some of my text.
Anyway, love the site, and thanks in advance if you can help with this one.
EDIT: I did attempt to search for :echo but that is apparently too common a term to use in the search function here so please pardon me if this question has already been addressed.