Hi to all,
I need to find the faster method for move the cursor in position 0,0
I have seen many tools that work for this (like Aacini's utility) and the powershell method and i think tha ANSI.SYS can do that, I'm right?
I search for the faster "Bulk" method.
Preferred in the order: internal dos command, external but OS native (exe,com,dll), wsh (how to use the dynawrapper? or other) / mshta.
For whs and mshta or powershell is possible create an method that run continous and wait for a signal?
einstein1969
Move Cursor to 0,0
Moderator: DosItHelp
-
- Expert
- Posts: 947
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
Re: Move Cursor to 0,0
this is cursor0.exe
this left the cursor in position x:0 y:0 that is the same effect of cls without fill the console with space characters.
cursor0.c (for tiny c)
For execute:
Edit: For a windows 10 solution using escape sequences: viewtopic.php?f=3&t=9506#p61583
this left the cursor in position x:0 y:0 that is the same effect of cls without fill the console with space characters.
cursor0.c (for tiny c)
Code: Select all
#include <windows.h>
#include <stdlib.h>
int main()
{
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
if ((hOut != NULL) && (hOut != INVALID_HANDLE_VALUE)) {
COORD coord = {X: 0, Y: 0};
SetConsoleCursorPosition(hOut, coord);
}
return 0;
}
Code: Select all
tcc -run cursor0.c
Last edited by carlos on 22 Mar 2020 09:22, edited 6 times in total.