|
From: | Oliver |
Subject: | Re: LP flag |
Date: | Fri, 9 Aug 2013 23:47:53 +1200 |
> From: Oliver
> Subject: LP flag
> Date: Thu, 8 Aug 2013 21:49:53 +1200
> _________________________________________________________________
ncurses won't write to the lower-right corner unless it can see how to>
> Hi, I have made a kind of pseudo terminal for a lcd project I am
> working on. Everything is working great except the last char in the
> last column of the last line is not printed, all others are printed.
> ie this is a 16 column by 4 rows and if I use this code:
> mvprintw(0, 0, "0123456789abcdef");
> mvprintw(1, 0, "0123456789abcdef");
> mvprintw(2, 0, "0123456789abcdef");
> mvprintw(3, 0, "0123456789abcdef");
> I get the following on the display
> 0123456789abcdef
> 0123456789abcdef
> 0123456789abcdef
> 0123456789abcde
> the last f is missing. After doing some reading I think this might be
> related to the `LP' flag as I am using the 'am' flag in
> my implementation. I tried adding the LP flag after the am flag, but
> tic rejecteds the flag ""vtlcd", line 4, col 19, terminal 'vtlcd':
> unknown capability 'LP'"
>
> What am I doing wrong?
>
> btw my term file looks like this (it may not be prefect, but apart
> from this issue it works):
> vtlcd|,
> bw, am, LP,
> cols#16, it#4, lines#4,
> clear=\EJ, cr=^M,
> cub1=\ED, cud1=\EB, cuf1=\EC,
> cuu1=\EA, cnorm=\Ev, civis=\EV,
> sgr0=\Ea, blink=\Eb,
> home=\EH, ht=^I, ind=^J, kbs=^H,
> kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
> nel=^M^J,
prevent the cursor from wrapping (and forcing the display to scroll).
Usually that's done by one of the insert-mode features - depends on
what your actual terminal supports.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAlIEqNMACgkQcCNT4PfkjtuNKQCcDaCWW0rEI7SXRg981rEYu+eY
QdsAn1sOQ243EzqvjcEOcR0ko3Swl46P
=Yojq
-----END PGP SIGNATURE-----
_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses
[Prev in Thread] | Current Thread | [Next in Thread] |