class_docstr: I/O abstraction for rendering to Windows consoles.
  (cmd.exe and similar.)
class_docstr_tok: ["I\/O","abstraction","for","rendering","to","Windows","consoles",".","(","cmd.exe","and","similar",".",")"]
code: def cursor_forward(self, amount):
      sr = self.get_win32_screen_buffer_info().dwCursorPosition
      #        assert sr.X + amount >= 0, 'Negative cursor position: x=%r amount=%r' % (sr.X, amount)
  
      pos = COORD(max(0, sr.X + amount), sr.Y)
      self._winapi(
          windll.kernel32.SetConsoleCursorPosition,
          self.hconsole,
          _coord_byval(pos),
      )
  
imports: from __future__ import unicode_literals
  from ctypes import windll, byref, ArgumentError, c_char, c_long, c_ulong, c_uint, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from prompt_toolkit.renderer import Output
  from prompt_toolkit.styles import ANSI_COLOR_NAMES
  from prompt_toolkit.win32_types import CONSOLE_SCREEN_BUFFER_INFO, STD_OUTPUT_HANDLE, STD_INPUT_HANDLE, COORD, SMALL_RECT
  import os
  import six
label_desc: Use image node_id 22 for calling the Win32Output obj's underlying member method code with example usage: obj.cursor_forward(amount) without return types