|
@@ -508,7 +508,7 @@ loop:
|
|
|
procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi)))
|
|
procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi)))
|
|
|
csbi.cursorPosition.x = short(n - 1)
|
|
csbi.cursorPosition.x = short(n - 1)
|
|
|
procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition)))
|
|
procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition)))
|
|
|
- case 'H':
|
|
|
|
|
|
|
+ case 'H', 'f':
|
|
|
procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi)))
|
|
procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi)))
|
|
|
if buf.Len() > 0 {
|
|
if buf.Len() > 0 {
|
|
|
token := strings.Split(buf.String(), ";")
|
|
token := strings.Split(buf.String(), ";")
|