Page 1 of 2

show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 04:41
by taripo
I remember how ansi.sys let you use an escape sequence to if I recall and I may be wrong, let you set text at a particular cursor position.

I am in XP and don't want to use command.com I want to use cmd.exe

What are my options?

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 05:26
by foxidrive
viewtopic.php?f=3&t=3216 There is a tool there which allows colour - msg posted today.

Other alternatives may be found in Timo Salmi's batch faq.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 05:40
by taripo
I don't see anything there that would do what I describe I am looking for.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 05:48
by foxidrive
Nothing in Timo Salmi's batch faq?

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 06:29
by taripo
I did a search over the entries there and didn't see anything for what I was looking for.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 06:53
by foxidrive
Did you search the web site or the ZIP archives? His website examples only shows a subset of the archives.


There are some solutions here too. It is not a native ability of the CMD prompt so you have to use the findstr workaround or use a tool for it.

viewtopic.php?f=3&t=2745

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 06:58
by foxidrive
I've just noticed that you didn't mention colour. ANSI escape sequences were mostly used for colour so I assumed you were after colour too.


What is it you are trying to do? Have a clock in the top right corner?

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 08:42
by taripo
a clock would be ok, or my IP Address, or MAC address.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 09:02
by foxidrive
Here ya go:

Code: Select all

@echo off
cls
echo                                                                     192.168.1.2
pause>nul

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 09:07
by taripo
No good. In your example it doesn't stick like a stamp. It's not permanent. When you push ENTER and have some commands that give some output, then after a short while it eventually scrolls off the screen.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 09:13
by foxidrive
if you want something to stay on the CMD screen permanently then you are going to need a TSR program.

What is it that you want to do?

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 09:24
by taripo
well, aside from it being good if there were a replacement for ansi.sys for cmd

I want a reminder of my IP Address. I am not keen on using the TITLE to do it 'cos I already use the title to summarise what i'm doing there so if I have to bring a cmd window back up I know what cmd prompt i'm opening.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 09:43
by Squashman
What is wrong with just typing ipconfig real quick?
Or putting some other program in your system tray that displays your IP address?

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 10:03
by foxidrive
indeed. or use a batch file called IP.BAT to display your ip address.

Re: show text in top right (like ansi.sys?)

Posted: 18 Apr 2012 10:08
by Squashman
Sound like a good idea for a DOSKEY macro as well.