Yasuhiro Matsumoto пре 8 година
родитељ
комит
167de6bfdf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      colorable_windows.go

+ 1 - 1
colorable_windows.go

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