struct SCursorState { bool valid; uint selectionOffset; uint selectionSize; uint offset; uint cell; unsigned char data[8]; uint undoState; bool charValid; };