Eric Arnold wrote:
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
It appears this is because getchar() doesn't flush the output and
position the cursor. Try this patch:
***
It works. Thanks.
On 6/18/06, Bram Moolenaar [EMAIL PROTECTED] wrote:
Eric Arnold wrote:
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
It appears this is because getchar() doesn't flush the
redrawing doesn't help. In this case with getchar(), echon'ed
trailing spaces are only shown after a non-space character is echon'ed
afterwards.
It's not a big deal, but I'm going to cc: [EMAIL PROTECTED] since I can't find
any way to create a getchar() + prompt with trailing spaces.
I'm
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
On Tue, 16 May 2006, Eric Arnold wrote:
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
I think echo/echon is doing fine. It's getchar() that's eating up
trailing spaces. Compare @a's for:
:redir
On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote:
On Tue, 16 May 2006, Eric Arnold wrote:
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
I think echo/echon is doing fine. It's getchar() that's
Eric Arnold wrote:
On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote:
On Tue, 16 May 2006, Eric Arnold wrote:
Does anybody understand why trailing spaces in an echon string don't
actually show up?
echon \ngimme
let inp = getchar()
echon nr2char(inp)
I think echo/echon is doing fine. It's