Implemented ioctls to switch access mode for text buffer.