Search found 5 matches

by ludwig
25 Aug 2019 18:44
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 7579

Re: VT100 escape sequences not working in Windows 10?

You might use a the pause command after the loop finidhed: Thanks, I just figured it out for myself and came back to edit my post to remove that question. Here is what works for me: FOR %%E in ("longfilename.txt" "short.txt" "mediumfile.txt") DO ( set /p="%ESC%[1G%ESC%[2K%%~E"<nul ) Using set I don...
by ludwig
25 Aug 2019 15:40
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 7579

Re: VT100 escape sequences not working in Windows 10?

(Finally you should add an '@' character in front of "echo off".) Yes, I accidentally left that off when I cut and paste. :: that line should be in white text color echo %ESC%[38;5;195mHello World%ESC%[0m echo( Why is that echo( line in there? I've not seen that before. I see where "Hello World" fa...
by ludwig
25 Aug 2019 11:47
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 7579

Re: VT100 escape sequences not working in Windows 10?

If you are OK with displaying the file names on the top line, then there is no need for VT100 sequences. Simply do CLS & ECHO file. You can easily make your original code work on any line with a small change: set /p "=!CR! !CR!!filename!" < nul Just make sure the number of spaces between the to car...
by ludwig
25 Aug 2019 11:43
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 7579

Re: VT100 escape sequences not working in Windows 10?

dbenham wrote:
25 Aug 2019 11:30
If you are OK with displaying the file names on the top line, then there is no need for VT100 sequences.

Simply do CLS & ECHO file.
I just said on the first line for the sake of simplicity. There are other things on the screen that need to be there so I can't use CLS.
by ludwig
25 Aug 2019 11:02
Forum: DOS Batch Forum
Topic: VT100 escape sequences not working in Windows 10?
Replies: 7
Views: 7579

VT100 escape sequences not working in Windows 10?

I have an issue where I'm processing a bunch of files in a directory with the command line program ffprobe (part of ffmpeg). The directories will have video clips and ffprobe is run on each to see if certain conditions are met and then carry out ffmpeg modifications depending on those conditions. I'...