On Mon, Jul 16, 2018 at 3:45 AM, 许建 <[email protected]> wrote: > Dear developers, > Iam a beginner of Linux programming. In amiga.c, source code of vim1.14, I > found this: > > 75 flushbuf() > 76 { > 77 if (bpos != 0) > 78 Write(raw_out, (char *)outbuf, (long)bpos); > 79 bpos = 0; > 80 } > > So I am confused by the function "Write" for I didn't find the function > prototype of it. > is it the "write" function in unistd.h? > > in fact I am trying to understand that how vim display chars in the terminal. > I have tried to write /dev/tty, but the result is not satisfactory. > > Thanks! > > Jian XU
Vim 1.14? When was that released? Unless you made a typo in that version number, the source you have is really very old. FYI, the current Vim code is at revision 8.1.191 and AFAIK its source doesn't include an "amiga.c" module anymore. Nowadays, the Vim source is kept on github at https://github.com/vim/vim (as a git repository, of course) and there is a Mercurial mirror at https://bitbucket.org/vim-mirror/vim . Both of them contain the same files arranged in the same directory structure, the difference is in how you get them (so whether you prefer git over Mercurial, or the opposite, there is a Vim source repository for you). Best regards, Tony. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
