Page 2 of 2

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

Posted: 18 Apr 2012 10:38
by Ed Dyreen
'
I remember Nitt's project,

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

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

Posted: 18 Apr 2012 20:33
by taripo
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.

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

Posted: 19 Apr 2012 01:23
by phillid
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.

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

Posted: 19 Apr 2012 01:27
by phillid
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

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

Posted: 19 Apr 2012 07:30
by Squashman
Why not just set your cmd prompt to be your IP address.

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

Posted: 19 Apr 2012 07:38
by foxidrive
That's an easy solution!