Date: Sat, 17 Jan 2015 19:28:17 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: less xss <less.xss@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: ctrl-d appends characters to output Message-ID: <90952.1421522897@critter.freebsd.dk> In-Reply-To: <CAGcjGpP0t3%2BcJLRHS5Ggfjao9Vcy0xosAg2KqBWgVA_NtKoNgA@mail.gmail.com> References: <CAGcjGpP0t3%2BcJLRHS5Ggfjao9Vcy0xosAg2KqBWgVA_NtKoNgA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-------- In message <CAGcjGpP0t3+cJLRHS5Ggfjao9Vcy0xosAg2KqBWgVA_NtKoNgA@mail.gmail= .com> , less xss writes: > printf("%.0f\n", nc); Change to: > printf("\n%.0f\n", nc); Also, try: ./a.out | hexdump -C -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90952.1421522897>