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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

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

#16 Post by Ed Dyreen » 18 Apr 2012 10:38

'
I remember Nitt's project,

Assembly Tutorial 16 - More On Cursor Positioning
http://www.youtube.com/watch?v=nQ5lx3YKqWc&feature=relmfu

taripo
Posts: 227
Joined: 01 Aug 2011 13:48

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

#17 Post by taripo » 18 Apr 2012 20:33

There was a program called goto.exe that may have used a similar technique to the assembly thing that was mentioned here, but the text it writes would then scroll off the screen. The text would have to be rewritten. Hence a previous poster mentioned that it'd have to be a TSR. (or somehow a version of cmd.exe with an updated prompt).

A batch file displaying IP is nice, I use one but I want to be able to glance at the screen and see it. Not re-entering a command each time I forget.

And as mentioned, 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.

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

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

#18 Post by phillid » 19 Apr 2012 01:23

Taripo, I wrote a program that moves the cursor to a certain position - it's called gotoxy. It's on the page at: http://batchbin.ueuo.com/programs.php but as you mentioned, you'd have to keep re-writing the text.....

Thanks
Phillid


EDIT: removed title command thing.

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

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

#19 Post by phillid » 19 Apr 2012 01:27

Maybe a batch file that emulates CMD and uses gotoxy after each command to re-display the ip address at the top of the screen, like:

Code: Select all

@echo off
rem Code to get IP address into variable %ip%
:loop
set "cmd="
set /p "cmd=%cd%>"
%cmd%
gotoxy 0 0
echo %ip%
goto loop


Or, I could write an EXE that's like CMD but dedicates a few lines at the top of the screen to user-defined information like IP addresses or anything? Any takers?

Thanks
Phillid

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

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

#20 Post by Squashman » 19 Apr 2012 07:30

Why not just set your cmd prompt to be your IP address.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

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

#21 Post by foxidrive » 19 Apr 2012 07:38

That's an easy solution!

Post Reply