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'
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-
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
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
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()
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
Does anybody understand why trailing spaces in an "echon" string don't
actually show up?
echon "\ngimme "
let inp = getchar()
echon nr2char(inp)