|
|
@@ -645,18 +645,8 @@ loop:
|
|
|
}
|
|
|
procGetConsoleScreenBufferInfo.Call(uintptr(handle), uintptr(unsafe.Pointer(&csbi)))
|
|
|
var cursor coord
|
|
|
- var count, written dword
|
|
|
+ var written dword
|
|
|
cursor = coord{x: csbi.cursorPosition.x, y: csbi.cursorPosition.y}
|
|
|
- // switch n {
|
|
|
- // case 0:
|
|
|
- // count = dword(csbi.size.x - csbi.cursorPosition.x)
|
|
|
- // case 1:
|
|
|
- // cursor = coord{x: csbi.window.left, y: csbi.cursorPosition.y}
|
|
|
- // count = dword(csbi.size.x - csbi.cursorPosition.x)
|
|
|
- // case 2:
|
|
|
- // cursor = coord{x: csbi.window.left, y: csbi.cursorPosition.y}
|
|
|
- // count = dword(csbi.size.x)
|
|
|
- // }
|
|
|
procFillConsoleOutputCharacter.Call(uintptr(handle), uintptr(' '), uintptr(n), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written)))
|
|
|
procFillConsoleOutputAttribute.Call(uintptr(handle), uintptr(csbi.attributes), uintptr(n), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written)))
|
|
|
case 'm':
|