public function getCursorCell()
    {
        if ($this->echo === false) {
            return 0;
        }
        if ($this->echo !== true) {
            return $this->strwidth($this->echo) * $this->linepos;
        }
        return $this->strwidth($this->substr($this->linebuffer, 0, $this->linepos));
    }
public function getCursorCell()
    {
        if ($this->echo === false) {
            return 0;
        }
        if ($this->echo !== true) {
            return $this->strwidth($this->echo) * $this->linepos;
        }
        return $this->strwidth($this->substr($this->linebuffer, 0, $this->linepos));
    }
public function getCursorCell ( ) { if ( $ this -> echo === false ) { return 0 ; } if ( $ this -> echo !== true ) { return $ this -> strwidth ( $ this -> echo ) * $ this -> linepos ; } return $ this -> strwidth ( $ this -> substr ( $ this -> linebuffer , 0 , $ this -> linepos ) ) ; }
Gets current cursor position measured in monospace cells.

Note that the cell position doesn't necessarily reflect the number of
text characters. If you want to know the latter, use
`self::getCursorPosition()` instead.

Most "normal" characters occupy a single monospace cell, i.e. the ASCII
sequence for "A" requires a single cell, as do most UTF-8 sequences
like "Ä".

However, there are a number of code points that do not require a cell
(i.e. invisible surrogates) or require two cells (e.g. some asian glyphs).

Also note that this takes the echo mode into account, i.e. the cursor is
always at position zero if echo is off. If using a custom echo character
(like asterisk), it will take its width into account instead of the actual
input characters.

@return int
@see self::getCursorPosition() to get current cursor position measured in characters
@see self::moveCursorTo() to move the cursor to a given character position
@see self::moveCursorBy() to move the cursor by given number of characters
@see self::setMove() to toggle whether the user can move the cursor position
@see self::setEcho()
Gets current cursor position measured in monospace cells .