Re: echon space ?

2006-06-18 Thread Eric Arnold
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'

Re: echon space ?

2006-06-18 Thread Bram Moolenaar
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: *** ../../vim-

Re: echon space ?

2006-05-17 Thread Eric Arnold
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 writin

Re: echon space ?

2006-05-16 Thread A.J.Mechelynck
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

Re: echon space ?

2006-05-16 Thread Eric Arnold
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()

Re: echon space ?

2006-05-16 Thread Gerald Lai
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: :red

echon space ?

2006-05-16 Thread Eric Arnold
Does anybody understand why trailing spaces in an "echon" string don't actually show up? echon "\ngimme " let inp = getchar() echon nr2char(inp)